コード例 #1
0
        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);
        }
コード例 #2
0
 public AuthService(ECommerceDataContext context)
 {
     _context = context;
 }
コード例 #3
0
 public ProductKeyWordRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #4
0
 public ShoppingCartsRepository(ECommerceDataContext context) : base(context)
 {
     _ecommercerContext = context as ECommerceDataContext;
 }
コード例 #5
0
 public PublicationsRepository(ECommerceDataContext context) : base(context)
 {
     _ecommerceContext = context as ECommerceDataContext;
 }
コード例 #6
0
 public AuthorsRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #7
0
 public SubjectsRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #8
0
 public PublishersRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #9
0
 public PaymentsRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #10
0
 public ProductQuestionAnswerRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #11
0
 public LineItemsRepository(ECommerceDataContext context) : base(context)
 {
     _eCommerceDataContext = context as ECommerceDataContext;
 }
コード例 #12
0
 public ProductImageRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #13
0
 public LicencesRepository(ECommerceDataContext context) : base(context)
 {
     _ecommerceContext = context as ECommerceDataContext;
 }
コード例 #14
0
 public Repository(ECommerceDataContext context)
 {
     Context       = context;
     ConnectionStr = Context.Database.GetDbConnection().ConnectionString;
 }
 public ShoppingCartItemsRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #16
0
 public CategoriesRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #17
0
 public LevelsRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #18
0
 public OrderRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #19
0
 public ShopperAddressRepository(ECommerceDataContext context) : base(context)
 {
 }
コード例 #20
0
 public MachineInfoService(ECommerceDataContext context)
 {
     _context = context;
 }
コード例 #21
0
 public OrdersRepository(ECommerceDataContext context) : base(context)
 {
     _eCommerceContext = context as ECommerceDataContext;
 }