1

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 SetDefaultConnectionFactory is used here? Why it is mentioned as Default?

leppie
  • 115,091
  • 17
  • 196
  • 297
Earth
  • 3,477
  • 6
  • 37
  • 78

1 Answers1

2

Used for initializing the provider connection with the front end. Please refer http://msdn.microsoft.com/en-us/library/system.data.entity.database.defaultconnectionfactory(v=vs.103).aspx for more details about database related issues