Esempio n. 1
0
 public static void Initialize()
 {
     IocContainerManage.Build();
     //
     UnitOfWorkContextManage.Register(() => new EFUnitOfWorkContext());
     DbContextManage.Register(() => new NKingimeDb());
     //
     userRepository = IocContainerManage.Container.Resolve <IUserRepository>();
 }
Esempio n. 2
0
 public static void Initialize()
 {
     IocContainerManage.Build();
     //
     UnitOfWorkContextManage.Register(() => new EFUnitOfWorkContext());
     DbContextManage.Register(() => new NKingimeDb());
     //
     transactionManage = IocContainerManage.Container.Resolve <ITransactionManage>();
 }
Esempio n. 3
0
 /// <summary>
 /// 注册必要的配置
 /// </summary>
 public static void Register()
 {
     UnitOfWorkContextManage.Register(RegisterWorkContext);
     DbContextManage.Register(RegisterDbContext);
 }