internal InnoloftDBContext context() { var options = new DbContextOptionsBuilder <InnoloftDBContext>() .UseLazyLoadingProxies() .UseSqlite("Data Source=Innoloft.db;"); var context = new InnoloftDBContext(options.Options); return(context); }
public ProductController(IMapper mapper, InnoloftDBContext context) { _mapper = mapper; _productService = new ProductService(context); }
public ProductService(InnoloftDBContext context) { _productRepository = new EFRepository <Product>(context); _productTypeRepository = new EFRepository <ProductType>(context); }
public SeedController(InnoloftDBContext context) { _seedService = new SeedService(context); }
public SeedService(InnoloftDBContext context) { _context = context; _productTypeRepository = new EFRepository <ProductType>(context); _contactRepository = new EFRepository <Contact>(context); }