Why is SetDefaultConnectionFactory used in the DbConfiguration class

I am learning the DBConfiguration class from this site.

public class MyConfiguration : DbConfiguration { public MyConfiguration() { SetDefaultConnectionFactory(new LocalDbConnectionFactory("v11.0")); AddProvider("My.New.Provider", new MyProviderServices()); } } 

Why is SetDefaultConnectionFactory used here? Why is it referred to as Default ?

+1
source share
1 answer

Used to initialize the connection of the provider with the front end. Please refer to http://msdn.microsoft.com/en-us/library/system.data.entity.database.defaultconnectionfactory(v=vs.103).aspx for more information on database problems

+2
source

All Articles