public static void Initialize()
 {
     UnitOfWorkContextManage.RegisterWorkContext(GetEFUnitOfWorkContext);
     DbContextManage.RegisterDbContext(GetKingimeNetContext);
 }
示例#2
0
 /// <summary>
 /// 注册数据访问配置
 /// </summary>
 public static void Register()
 {
     UnitOfWorkContextManage.RegisterWorkContext(RegisterWorkContext);
     DbContextManage.RegisterDbContext(RegisterDbContext);
 }