コード例 #1
0
        public RepositoryFactory(IInfrastructureConfigurationLoader configuration_loader)
        {
            InfrastructureConfigurations configs = configuration_loader.Load("appsettings.json");
            var optionsBuilder = new DbContextOptionsBuilder <BaseStartupDemo>();

            optionsBuilder.UseSqlServer(configs.sql_Connection);

            _context = new BaseStartupDemo(optionsBuilder.Options);
        }
コード例 #2
0
 public ConfigurationsRepository(BaseStartupDemo context, bool readOnly, IFilterFactory filterFactory) : base(context, readOnly, filterFactory)
 {
 }
コード例 #3
0
 public ConfigurationsRepository(BaseStartupDemo context, bool readOnly) : base(context, readOnly)
 {
 }
コード例 #4
0
 public UsersRepository(BaseStartupDemo context, bool readOnly, IFilterFactory filterFactory) : base(context, readOnly, filterFactory)
 {
 }
コード例 #5
0
 public UsersRepository(BaseStartupDemo context, bool readOnly) : base(context, readOnly)
 {
 }
コード例 #6
0
 public AbstractRepositoryEF(BaseStartupDemo context, bool readOnly, IFilterFactory filterFactory)
 {
     this.context       = context;
     this.readOnly      = readOnly;
     this.filterFactory = filterFactory;
 }
コード例 #7
0
 public AbstractRepositoryEF(BaseStartupDemo context, bool readOnly)
 {
     this.context  = context;
     this.readOnly = readOnly;
     filterFactory = new FilterFactory();
 }