コード例 #1
0
        public static void Initialize(StoreDbContext context)
        {
            var initializer = new StoreDBInitializer();

            initializer.SeedEverything(context);
        }
コード例 #2
0
 public Repository(StoreDbContext context, IEventDispatcher domainEventsDispatcher)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
     _domainEventsDispatcher = domainEventsDispatcher;
 }