示例#1
0
 /// <summary>
 /// Initializes an instance of the <see cref="DesignTimeDbContextFactoryBase{TContext}"/> class.
 /// </summary>
 /// <param name="databaseType">The database type.</param>
 /// <param name="dbConfiguration">The database configuration.</param>
 /// <param name="loggerFactory">The logger factory.</param>
 protected DesignTimeDbContextFactoryBase(string databaseType, DbConfiguration dbConfiguration, ILoggerFactory loggerFactory)
 {
     _dbConfiguration = dbConfiguration ?? GetDbConfiguration(databaseType);
     LoggerFactory    = loggerFactory;
 }
 /// <summary>
 /// Initializes an instance of the <see cref="DatabaseFactory{TDbContext}"/> class.
 /// </summary>
 /// <param name="databaseType">The database type.</param>
 /// <param name="dbConfiguration">The database configuration.</param>
 /// <param name="loggerFactory">The logger factory.</param>
 protected DatabaseFactory(string databaseType, DbConfiguration dbConfiguration, ILoggerFactory loggerFactory) :
     base(databaseType, dbConfiguration, loggerFactory)
 {
 }