public EFUnitOfWork() { var optionsBuilder = new DbContextOptionsBuilder(); var configuration = new ConfigurationBuilder() .AddJsonFile("Database.json").Build(); var connectionString = configuration.GetConnectionString("ECommerceDatabase"); optionsBuilder.UseSqlServer(connectionString); _context = new ECommerceDataContext(optionsBuilder.Options); }
public AuthService(ECommerceDataContext context) { _context = context; }
public ProductKeyWordRepository(ECommerceDataContext context) : base(context) { }
public ShoppingCartsRepository(ECommerceDataContext context) : base(context) { _ecommercerContext = context as ECommerceDataContext; }
public PublicationsRepository(ECommerceDataContext context) : base(context) { _ecommerceContext = context as ECommerceDataContext; }
public AuthorsRepository(ECommerceDataContext context) : base(context) { }
public SubjectsRepository(ECommerceDataContext context) : base(context) { }
public PublishersRepository(ECommerceDataContext context) : base(context) { }
public PaymentsRepository(ECommerceDataContext context) : base(context) { }
public ProductQuestionAnswerRepository(ECommerceDataContext context) : base(context) { }
public LineItemsRepository(ECommerceDataContext context) : base(context) { _eCommerceDataContext = context as ECommerceDataContext; }
public ProductImageRepository(ECommerceDataContext context) : base(context) { }
public LicencesRepository(ECommerceDataContext context) : base(context) { _ecommerceContext = context as ECommerceDataContext; }
public Repository(ECommerceDataContext context) { Context = context; ConnectionStr = Context.Database.GetDbConnection().ConnectionString; }
public ShoppingCartItemsRepository(ECommerceDataContext context) : base(context) { }
public CategoriesRepository(ECommerceDataContext context) : base(context) { }
public LevelsRepository(ECommerceDataContext context) : base(context) { }
public OrderRepository(ECommerceDataContext context) : base(context) { }
public ShopperAddressRepository(ECommerceDataContext context) : base(context) { }
public MachineInfoService(ECommerceDataContext context) { _context = context; }
public OrdersRepository(ECommerceDataContext context) : base(context) { _eCommerceContext = context as ECommerceDataContext; }