protected ReadOnlyGenericRepository(smartFundsDbContext dbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions
                                     , IRedisAutoCompleteProvider redisAutoCompleteProvider)
 {
     _context = dbContext;
     _redisConfigurationOptions = redisConfigurationOptions;
     _redisAutoCompleteProvider = redisAutoCompleteProvider;
 }
Example #2
0
 public GenericRepository(smartFundsDbContext smartFundsDbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions
                          , IRedisAutoCompleteProvider redisAutoCompleteProvider)
 {
     _context = smartFundsDbContext;
     _redisConfigurationOptions = redisConfigurationOptions;
     _redisAutoCompleteProvider = redisAutoCompleteProvider;
 }
Example #3
0
 public UnitOfWork(IDbContextFactory <smartFundsDbContext> dbContextFactory, IOptions <smartFundsRedisOptions> redisConfigurationOptions
                   , IRedisAutoCompleteProvider redisAutoCompleteProvider, IHttpContextAccessor httpContextAccessor)
 {
     _context = dbContextFactory.GetContext();
     _redisConfigurationOptions = redisConfigurationOptions;
     _redisAutoCompleteProvider = redisAutoCompleteProvider;
     _httpContextAccessor       = httpContextAccessor;
 }
Example #4
0
        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;
 }
Example #6
0
 public UserRepository(smartFundsDbContext smartFundsDbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions
                       , IRedisAutoCompleteProvider redisAutoCompleteProvider, IHttpContextAccessor httpContextAccessor) : base(smartFundsDbContext, redisConfigurationOptions, redisAutoCompleteProvider, httpContextAccessor)
 {
     _smartFundsDbContext = smartFundsDbContext;
 }
Example #7
0
 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;
 }
Example #9
0
 protected GenericPersistentTrackedRepository(smartFundsDbContext dbContext, IOptions <smartFundsRedisOptions> redisConfigurationOptions
                                              , IRedisAutoCompleteProvider redisAutoCompleteProvider, IHttpContextAccessor httpContextAccessor) : base(dbContext, redisConfigurationOptions, redisAutoCompleteProvider)
 {
     _httpContextAccessor = httpContextAccessor;
 }
Example #10
0
 protected BaseSeedData(smartFundsDbContext context)
 {
     Context = context;
 }
Example #11
0
 public UserRole(smartFundsDbContext context) : base(context)
 {
 }
Example #12
0
 public IntroducingPageCMSManager(IUnitOfWork unitOfWork, IHostingEnvironment hostingEnvironment, smartFundsDbContext smartFundsDbContext)
 {
     _unitOfWork          = unitOfWork;
     _hostingEnvironment  = hostingEnvironment;
     _smartFundsDbContext = smartFundsDbContext;
 }