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
  • 112,162
  • 17
  • 191
  • 293
Programmer
  • 646
  • 2
  • 11
  • 29

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