"Specified method is not supported." in entity framework
===

this is my entity class listed as

     public partial class NerdDinnerEntities : ObjectContext
        {
            #region Constructors
        
            
            public NerdDinnerEntities(string connectionString)
                : base(connectionString, "NerdDinnerEntities")
            {
                try
                {
                    ObjectContext oc = new ObjectContext(connectionString);
                 
                   oc.Connection.ChangeDatabase("NERDDINNER1");
                   oc.AcceptAllChanges();
                    this.ContextOptions.LazyLoadingEnabled = true;
                    OnContextCreated();
                }
                catch (Exception ex) { }
            }
        
               
            #endregion
        
            #region Partial Methods
        
            partial void OnContextCreated();
        
            #endregion
        
            #region ObjectSet Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            public ObjectSet<Dinner> Dinners
            {
                get
                {
                    if ((_Dinners == null))
                    {
                        _Dinners = base.CreateObjectSet<Dinner>("Dinners");
                    }
                    return _Dinners;
                }
            }
            private ObjectSet<Dinner> _Dinners;
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            public ObjectSet<RSVP> RSVPs
            {
                get
                {
                    if ((_RSVPs == null))
                    {
                        _RSVPs = base.CreateObjectSet<RSVP>("RSVPs");
                    }
                    return _RSVPs;
                }
            }
            private ObjectSet<RSVP> _RSVPs;
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            public ObjectSet<sysdiagram> sysdiagrams
            {
                get
                {
                    if ((_sysdiagrams == null))
                    {
                        _sysdiagrams = base.CreateObjectSet<sysdiagram>("sysdiagrams");
                    }
                    return _sysdiagrams;
                }
            }
            private ObjectSet<sysdiagram> _sysdiagrams;
    
            #endregion
            #region AddTo Methods
        
            /// <summary>
            /// Deprecated Method for adding a new object to the Dinners EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
            /// </summary>
            public void AddToDinners(Dinner dinner)
            {
                base.AddObject("Dinners", dinner);
            }
        
            /// <summary>
            /// Deprecated Method for adding a new object to the RSVPs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
            /// </summary>
            public void AddToRSVPs(RSVP rSVP)
            {
                base.AddObject("RSVPs", rSVP);
            }
        
            /// <summary>
            /// Deprecated Method for adding a new object to the sysdiagrams EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
            /// </summary>
            public void AddTosysdiagrams(sysdiagram sysdiagram)
            {
                base.AddObject("sysdiagrams", sysdiagram);
            }
    
            #endregion
        }

and these is my web.config file as 

     <add name="NerdDinnerEntities" connectionString="metadata=res://*/Models.NerdDinner.csdl|res://*/Models.NerdDinner.ssdl|res://*/Models.NerdDinner.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=@;Database=NERDDINNER;User ID=@;Password=@@@;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClients" />


and i am getting error in this line as 

      oc.Connection.ChangeDatabase("NERDDINNER1");

> Specified method is not supported.

i do not know how to proceed can u give ur valuable sugessions 


