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