Entity Framework Connection String

  Code Snippet using System.Data.EntityClient;               EntityConnectionStringBuilder entityConString = new EntityConnectionStringBuilder()             {                 Metadata = @"res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl",                 Provider = "System.Data.SqlClient",                 ProviderConnectionString = new System.Data.SqlClient.SqlConnectionStringBuilder                 {                     InitialCatalog = dbname,                     DataSource = servername,                     IntegratedSecurity = false,                     UserID = user,                     Password = pwd                 }                   .ConnectionString             };             return entityConString.ToString();

Create a website or blog at WordPress.com

Up ↑