コード例 #1
0
 public IdentityDbInitilizer(FileStorageContext context, IServiceProvider provider)
 {
     _roleManager = provider.GetService <RoleManager <ApplicationRole> >();
     _userManager = provider.GetService <UserManager <ApplicationUser> >();
     _context     = context;
     Init();
 }
        public GetCanvasBitmapForTemplatePageHandler(IOptions <PersistenceConfiguration> configuration,
                                                     FileStorageContext context)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            _configuration = configuration;
            _context       = context;
        }
        public SaveBitmapsForDocumentToProcessHandler(IOptions <PersistenceConfiguration> configuration,
                                                      FileStorageContext context)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            _configuration = configuration;
            _context       = context;
        }
コード例 #4
0
 public FileInfoRepository(FileStorageContext dbContext, IUnitOfWork unitOfWork) : base(dbContext, unitOfWork)
 {
 }
コード例 #5
0
 public FileShareRepository(FileStorageContext context)
     : base(context)
 {
     _context = context;
 }
コード例 #6
0
 public UnitOfWork()
 {
     context     = new FileStorageContext();
     UserManager = new ApplicationUserManager(new UserStore <ApplicationUser>(context));
     RoleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(context));
 }
コード例 #7
0
 public FileDBsController(FileStorageContext context)
 {
     _context = context;
 }
コード例 #8
0
 public EfUnitOfWork(FileStorageContext context) =>
 this.context = context;
コード例 #9
0
 public FileStorageRepository(FileStorageContext context)
 {
     this._context = context;
     this._dataset = this._context.Set <T>();
 }
コード例 #10
0
 public Repository(FileStorageContext _context)
 {
     context = _context;
     dbSet   = _context.Set <T>();
 }
コード例 #11
0
 public CompositeKeyRepository(FileStorageContext context)
 {
     _context = context;
 }
コード例 #12
0
 public UserRepository(FileStorageContext context)
     : base(context)
 {
     _context = context;
 }
コード例 #13
0
 public SingleKeyRepository(FileStorageContext context)
 {
     _context = context;
 }
コード例 #14
0
 public ProfileController(FileStorageContext context)
 {
     _context = context;
 }
コード例 #15
0
 public RefreshTokenRepository(FileStorageContext context)
     : base(context)
 {
     _context = context;
 }
 public DataController(FileStorageContext context)
 {
     _context = context;
 }
コード例 #17
0
 public UnitOfWork(FileStorageContext context)
 {
     _context = context;
 }