protected ReadOnlyGenericRepository(smartFundsDbContext dbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions , IRedisAutoCompleteProvider redisAutoCompleteProvider) { _context = dbContext; _redisConfigurationOptions = redisConfigurationOptions; _redisAutoCompleteProvider = redisAutoCompleteProvider; }
public GenericRepository(smartFundsDbContext smartFundsDbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions , IRedisAutoCompleteProvider redisAutoCompleteProvider) { _context = smartFundsDbContext; _redisConfigurationOptions = redisConfigurationOptions; _redisAutoCompleteProvider = redisAutoCompleteProvider; }
public UnitOfWork(IDbContextFactory <smartFundsDbContext> dbContextFactory, IOptions <smartFundsRedisOptions> redisConfigurationOptions , IRedisAutoCompleteProvider redisAutoCompleteProvider, IHttpContextAccessor httpContextAccessor) { _context = dbContextFactory.GetContext(); _redisConfigurationOptions = redisConfigurationOptions; _redisAutoCompleteProvider = redisAutoCompleteProvider; _httpContextAccessor = httpContextAccessor; }
public static void Seed(smartFundsDbContext context) { var assembly = Assembly.GetExecutingAssembly(); var types = assembly.GetTypes().Where(t => t.GetTypeInfo().IsSubclassOf(typeof(BaseSeedData))).ToList(); foreach (var type in types) { var instance = Activator.CreateInstance(type, new object[] { context }); var method = type.GetMethod("Seed"); method.Invoke(instance, new object[0]); } }
public HomepageCMSRepository(smartFundsDbContext smartFundsDbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions , IRedisAutoCompleteProvider redisAutoCompleteProvider) : base(smartFundsDbContext, redisConfigurationOptions, redisAutoCompleteProvider) { _smartFundsDbContext = smartFundsDbContext; }
public UserRepository(smartFundsDbContext smartFundsDbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions , IRedisAutoCompleteProvider redisAutoCompleteProvider, IHttpContextAccessor httpContextAccessor) : base(smartFundsDbContext, redisConfigurationOptions, redisAutoCompleteProvider, httpContextAccessor) { _smartFundsDbContext = smartFundsDbContext; }
public static void EnsureSeeded(this smartFundsDbContext context) { SeedDataHelper.Seed(context); context.SaveChanges(); }
public FundTransactionHistoryRepository(smartFundsDbContext smartFundsDbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions , IRedisAutoCompleteProvider redisAutoCompleteProvider) : base(smartFundsDbContext, redisConfigurationOptions, redisAutoCompleteProvider) { _smartFundsDbContext = smartFundsDbContext; }
protected GenericPersistentTrackedRepository(smartFundsDbContext dbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions , IRedisAutoCompleteProvider redisAutoCompleteProvider, IHttpContextAccessor httpContextAccessor) : base(dbContext, redisConfigurationOptions, redisAutoCompleteProvider) { _httpContextAccessor = httpContextAccessor; }
protected BaseSeedData(smartFundsDbContext context) { Context = context; }
public UserRole(smartFundsDbContext context) : base(context) { }
public IntroducingPageCMSManager(IUnitOfWork unitOfWork, IHostingEnvironment hostingEnvironment, smartFundsDbContext smartFundsDbContext) { _unitOfWork = unitOfWork; _hostingEnvironment = hostingEnvironment; _smartFundsDbContext = smartFundsDbContext; }