public static void Initialize(StoreDbContext context) { var initializer = new StoreDBInitializer(); initializer.SeedEverything(context); }
public Repository(StoreDbContext context, IEventDispatcher domainEventsDispatcher) { _context = context; _dbSet = context.Set <TEntity>(); _domainEventsDispatcher = domainEventsDispatcher; }