On version 3.2 of the entity framework6

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Just downloaded nop3.2, find a database connection or use of EF5.0 technology, why not use the connection method EF6.0?


public virtual void InitConnectionFactory()
        {
            var connectionFactory = new SqlConnectionFactory();
            Database.DefaultConnectionFactory = connectionFactory;
        }



Warning  2  “System.Data.Entity.Database.DefaultConnectionFactory”Outdated:“The default connection factory should be set in the config file or using the DbConfiguration class. (See http://go.microsoft.com/fwlink/?LinkId=260883)”
10 years ago
If you want to use DbConfiguration, then you need two implementations (for standard SQL Server and SQL Express). And EF doesn't allow to have two (or more) DbConfiguration implementations in one assembly. Anyway, it's just a warning (recommendation). You can ignore it now
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.