示例#1
0
        public static void SeedHostDb(POSDbContext 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 OfferRepository(POSDbContext dbContext) : base(dbContext)
 {
 }
示例#3
0
 public DailySalesEntriesController(POSDbContext context)
 {
     _context = context;
 }
示例#4
0
 public CategoryRepository(POSDbContext pOSDbContext)
 {
     cntx = pOSDbContext;
 }
示例#5
0
 public DefaultTenantBuilder(POSDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(POSDbContext context)
 {
     _context = context;
 }
示例#7
0
 public DefaultLanguagesCreator(POSDbContext context)
 {
     _context = context;
 }
示例#8
0
 public InventoryItemsController(POSDbContext context)
 {
     _context = context;
 }
示例#9
0
 public ProductRepository(POSDbContext pOSDbContext)
 {
     cntx = pOSDbContext;
 }
示例#10
0
 public AddInventoryController(POSDbContext context)
 {
     _context = context;
 }
示例#11
0
 public HostRoleAndUserCreator(POSDbContext context)
 {
     _context = context;
 }
示例#12
0
 public TenantRoleAndUserBuilder(POSDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
示例#13
0
 public VendorRepository(POSDbContext pOSDbContext)
 {
     cntx = pOSDbContext;
 }
示例#14
0
 public InitialHostDbBuilder(POSDbContext context)
 {
     _context = context;
 }
示例#15
0
 public DailySalesModelsController(POSDbContext context, ApplicationDbContext applicationContext)
 {
     _context            = context;
     _applicationContext = applicationContext;
 }
示例#16
0
 public DefaultEditionCreator(POSDbContext context)
 {
     _context = context;
 }