示例#1
0
 public RoleService(IEfCoreRepository <SysRole, int> role, IRoleMenuRepos roleMenu,
                    IEfCoreRepository <SysMenu, int> menu)
 {
     _role     = role;
     _roleMenu = roleMenu;
     _menu     = menu;
 }
示例#2
0
 public MenuService(IEfCoreRepository <SysMenu, int> menu,
                    IRoleMenuRepos roleMenu,
                    IEfCoreRepository <SysOperate, int> operate)
 {
     _menu     = menu;
     _roleMenu = roleMenu;
     _operate  = operate;
 }
示例#3
0
 public PermssionManage(IEfCoreRepository <PermissionInfo> ef)
 {
     this.efCore = ef;
 }
示例#4
0
 public QuestionManage(IEfCoreRepository <QuestionInfo> ef)
 {
     this.efCore = ef;
 }
 public OperateService(IEfCoreRepository <SysOperate, int> operate, IRoleMenuRepos roleMenu)
 {
     _operate  = operate;
     _roleMenu = roleMenu;
 }
示例#6
0
 public OperateService(IEfCoreRepository <SysOperate, int> operate, IRoleMenuRepos roleMenu, IMapper mapper)
 {
     _operate  = operate;
     _roleMenu = roleMenu;
     _mapper   = mapper;
 }
示例#7
0
 public ClassManage(IEfCoreRepository <ClassInfo> ef)
 {
     this.efCore = ef;
 }
 public SampleService(IEfCoreRepository <SampleModel, string> repository)
 {
     _repository = repository;
 }
示例#9
0
 public RoleManage(IEfCoreRepository <RoleInfo> ef)
 {
     this.efCore = ef ?? throw new ArgumentNullException(nameof(efCore));
 }
示例#10
0
 public SysUserService(IEfCoreRepository <Domain.SysUser, int> sysUser, IEfCoreRepository <SysRole, int> role)
 {
     _sysUser = sysUser;
     _role    = role;
 }
示例#11
0
 public ExaminationManage(IEfCoreRepository <ExaminationInfo> ef)
 {
     this.efCore = ef;
 }
示例#12
0
 public MenuService(IEfCoreRepository <SysMenu, int> menu, IEfCoreRepository <SysRoleMenu, int> roleMenu)
 {
     _menu     = menu;
     _roleMenu = roleMenu;
 }
示例#13
0
 public AnswerManage(IEfCoreRepository <AnswerInfo> ef)
 {
     this.efCore = ef;
 }
示例#14
0
 public MenuManage(IEfCoreRepository <MenuInfo> ef)
 {
     this.efCore = ef;
 }
 public ResourceRepository(IEfCoreRepository <ResourceEntity, Guid> repository)
 {
     _repository = repository;
 }
示例#16
0
 public RoleService(IEfCoreRepository <SysRole, int> role)
 {
     _role = role;
 }
示例#17
0
 public UserManage(IEfCoreRepository <UserInfo> ef)
 {
     this.efCore = ef;
 }
示例#18
0
 public SampleController(IEfCoreRepository <SampleModel, string> repository)
 {
     _repository = repository;
 }
示例#19
0
 public SysUserService(IEfCoreRepository <Domain.SysUser, int> sysUser, IEfCoreRepository <SysRole, int> role, IMapper mapper)
 {
     _sysUser = sysUser;
     _role    = role;
     _mapper  = mapper;
 }
示例#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);
            }
        }