Example #1
0
 public RoleService(IEfCoreRepository <SysRole, int> role, IRoleMenuRepos roleMenu,
                    IEfCoreRepository <SysMenu, int> menu)
 {
     _role     = role;
     _roleMenu = roleMenu;
     _menu     = menu;
 }
Example #2
0
 public MenuService(IEfCoreRepository <SysMenu, int> menu,
                    IRoleMenuRepos roleMenu,
                    IEfCoreRepository <SysOperate, int> operate)
 {
     _menu     = menu;
     _roleMenu = roleMenu;
     _operate  = operate;
 }
Example #3
0
 public PermssionManage(IEfCoreRepository <PermissionInfo> ef)
 {
     this.efCore = ef;
 }
Example #4
0
 public QuestionManage(IEfCoreRepository <QuestionInfo> ef)
 {
     this.efCore = ef;
 }
 public OperateService(IEfCoreRepository <SysOperate, int> operate, IRoleMenuRepos roleMenu)
 {
     _operate  = operate;
     _roleMenu = roleMenu;
 }
Example #6
0
 public OperateService(IEfCoreRepository <SysOperate, int> operate, IRoleMenuRepos roleMenu, IMapper mapper)
 {
     _operate  = operate;
     _roleMenu = roleMenu;
     _mapper   = mapper;
 }
Example #7
0
 public ClassManage(IEfCoreRepository <ClassInfo> ef)
 {
     this.efCore = ef;
 }
 public SampleService(IEfCoreRepository <SampleModel, string> repository)
 {
     _repository = repository;
 }
Example #9
0
 public RoleManage(IEfCoreRepository <RoleInfo> ef)
 {
     this.efCore = ef ?? throw new ArgumentNullException(nameof(efCore));
 }
 public SysUserService(IEfCoreRepository <Domain.SysUser, int> sysUser, IEfCoreRepository <SysRole, int> role)
 {
     _sysUser = sysUser;
     _role    = role;
 }
Example #11
0
 public ExaminationManage(IEfCoreRepository <ExaminationInfo> ef)
 {
     this.efCore = ef;
 }
Example #12
0
 public MenuService(IEfCoreRepository <SysMenu, int> menu, IEfCoreRepository <SysRoleMenu, int> roleMenu)
 {
     _menu     = menu;
     _roleMenu = roleMenu;
 }
Example #13
0
 public AnswerManage(IEfCoreRepository <AnswerInfo> ef)
 {
     this.efCore = ef;
 }
Example #14
0
 public MenuManage(IEfCoreRepository <MenuInfo> ef)
 {
     this.efCore = ef;
 }
 public ResourceRepository(IEfCoreRepository <ResourceEntity, Guid> repository)
 {
     _repository = repository;
 }
Example #16
0
 public RoleService(IEfCoreRepository <SysRole, int> role)
 {
     _role = role;
 }
Example #17
0
 public UserManage(IEfCoreRepository <UserInfo> ef)
 {
     this.efCore = ef;
 }
Example #18
0
 public SampleController(IEfCoreRepository <SampleModel, string> repository)
 {
     _repository = repository;
 }
Example #19
0
 public SysUserService(IEfCoreRepository <Domain.SysUser, int> sysUser, IEfCoreRepository <SysRole, int> role, IMapper mapper)
 {
     _sysUser = sysUser;
     _role    = role;
     _mapper  = mapper;
 }
Example #20
0
 public AuthService(IEfCoreRepository <Domain.SysUser, int> sysUser)
 {
     _sysUser = sysUser;
 }
        async Task IEfCoreBulkOperationProvider.UpdateManyAsync <TDbContext, TEntity>(IEfCoreRepository <TEntity> repository, IEnumerable <TEntity> entities, bool autoSave, CancellationToken cancellationToken)
        {
            var dbContext = await repository.GetDbContextAsync();

            await dbContext.BulkUpdateAsync(entities.ToList());

            if (autoSave)
            {
                await dbContext.SaveChangesAsync(cancellationToken);
            }
        }