示例#1
0
        protected override void OnConfiguring(DbContextOptionsBuilder options)
        {
            var config = DBObjectContext.GetAppConfigure();

            options
            .UseLoggerFactory(loggerFactory)
            .UseSqlServer(config.GetConnectionString("sqlServerDb"));
        }
示例#2
0
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 {
     var configure = DBObjectContext.GetAppConfigure();
 }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var config = DBObjectContext.GetAppConfigure();

            optionsBuilder.UseSqlite(config.GetConnectionString("sqliteDb"));
        }