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