private void ResetDB()
        {
            ElogicSystemContext db = new ElogicSystemContext();

            db.Database.EnsureDeleted();
            db.Database.EnsureCreated();
        }
 public UnitOfWork(ElogicSystemContext context)
 {
     _context = context;
 }
 public PanelRepository(ElogicSystemContext context) : base(context)
 {
 }
 public CategoryRepository(ElogicSystemContext context) : base(context)
 {
 }
Exemple #5
0
 public TemplateRepository(ElogicSystemContext context) : base(context)
 {
 }
Exemple #6
0
 public Repository(ElogicSystemContext context)
 {
     DbSet   = context.Set <TEntity>();
     Context = context;
 }
 public ItemRepository(ElogicSystemContext dbContext) : base(dbContext)
 {
 }
Exemple #8
0
 public ManufacturerRepository(ElogicSystemContext context) : base(context)
 {
 }
 public QuotationRepository(ElogicSystemContext context) : base(context)
 {
 }
 public CustomerRepository(ElogicSystemContext dbContext) : base(dbContext)
 {
 }