public UnitOfWorks(NetCoreDbContext db) { _db = db; items = new ItemRepository(_db); customer = new CustomerRepository(_db); order = new OrderRepository(_db); orderItem = new OrderItemRepository(_db); }
public static void SeedHostDb(NetCoreDbContext context) { context.SuppressAutoSetTenantId = true; // Host seed new InitialHostDbBuilder(context).Create(); // Default tenant seed (in host database). new DefaultTenantBuilder(context).Create(); new TenantRoleAndUserBuilder(context, 1).Create(); }
public InitialHostDbBuilder(NetCoreDbContext context) { _context = context; }
public DefaultTenantBuilder(NetCoreDbContext context) { _context = context; }
protected BaseController(NetCoreDbContext content) { _content = content; }
public DefaultSettingsCreator(NetCoreDbContext context) { _context = context; }
public HomeController(NetCoreDbContext content) : base(content) { }
public ItemRepository(NetCoreDbContext db) : base(db) { _db = db; }
public MenuViewComponent(NetCoreDbContext content) => _context = content;
public HostRoleAndUserCreator(NetCoreDbContext context) { _context = context; }
public DefaultEditionCreator(NetCoreDbContext context) { _context = context; }
public AuthController(NetCoreDbContext content) : base(content) { }
public Repository(NetCoreDbContext db) { _db = db; this.dbSet = _db.Set <T>(); }
public DefaultLanguagesCreator(NetCoreDbContext context) { _context = context; }
public OrderRepository(NetCoreDbContext db) : base(db) { _db = db; }
public TenantRoleAndUserBuilder(NetCoreDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public CustomerRepository(NetCoreDbContext db) : base(db) { _db = db; }