Data Providers

Connection String Builders

var connectionStringBuilder = new SqlConnectionStringBuilder
{
	DataSource = @"(localdb)\\v11.0",
	InitialCatalog = "ProgrammingInCSharp"
};

var entityConnectionStringBuilder = new EntityConnectionStringBuilder
{
	Provider = "System.Data.SqlClient",
	ProviderConnectionString = connectionStringBuilder.ToString(),
	Metadata = @"res://NinjaDomain.OldStyleContext/NinjaObjectContext.csdl|" +
					 @"res://NinjaDomain.OldStyleContext/NinjaObjectContext.ssdl|" +
					 @"res://NinjaDomain.OldStyleContext/NinjaObjectContext.msl"
};

Connection Pooling