Beispiel #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);
        }
 public ConfigurationsRepository(BaseStartupDemo context, bool readOnly, IFilterFactory filterFactory) : base(context, readOnly, filterFactory)
 {
 }
 public ConfigurationsRepository(BaseStartupDemo context, bool readOnly) : base(context, readOnly)
 {
 }
Beispiel #4
0
 public UsersRepository(BaseStartupDemo context, bool readOnly, IFilterFactory filterFactory) : base(context, readOnly, filterFactory)
 {
 }
Beispiel #5
0
 public UsersRepository(BaseStartupDemo context, bool readOnly) : base(context, readOnly)
 {
 }
Beispiel #6
0
 public AbstractRepositoryEF(BaseStartupDemo context, bool readOnly, IFilterFactory filterFactory)
 {
     this.context       = context;
     this.readOnly      = readOnly;
     this.filterFactory = filterFactory;
 }
Beispiel #7
0
 public AbstractRepositoryEF(BaseStartupDemo context, bool readOnly)
 {
     this.context  = context;
     this.readOnly = readOnly;
     filterFactory = new FilterFactory();
 }