SuperDb.cs 716 B

123456789101112131415161718192021
  1. //namespace Y.DB.DAO
  2. //{
  3. // /// <summary>
  4. // /// SuperDb 中完成数据库的配置
  5. // /// </summary>
  6. // public class SuperDb : DbContext
  7. // {
  8. // public SuperDb()
  9. // : base("SQLServerConnection")//SQLServerConnection//DefaultConnection
  10. // {
  11. // //设置数据迁移配置
  12. // Database.SetInitializer(new MigrateDatabaseToLatestVersion<DbTable, MigraConf>());
  13. // }
  14. // protected override void OnModelCreating(DbModelBuilder modelBuilder)
  15. // {
  16. // //去掉复数映射
  17. // modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
  18. // base.OnModelCreating(modelBuilder);
  19. // }
  20. // }
  21. //}