示例#1
0
 public ProductService(IEfDbSetWrapper <Product> productSetWrapper, IOnLineShopDbContextSaveChanges dbContext)
 {
     Guard.WhenArgument(productSetWrapper, "productSetWrapper").IsNull().Throw();
     Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();
     this.productSetWrapper = productSetWrapper;
     this.dbContext         = dbContext;
 }
        public SizeService(IEfDbSetWrapper <Size> SizeSetWrapper, IOnLineShopDbContextSaveChanges dbContext)
        {
            Guard.WhenArgument(SizeSetWrapper, "SizeSetWrapper").IsNull().Throw();
            Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();

            this.sizeSetWrapper = SizeSetWrapper;
            this.dbContext      = dbContext;
        }
        public BrandService(IEfDbSetWrapper <Brand> brandSetWrapper, IOnLineShopDbContextSaveChanges dbContext)
        {
            Guard.WhenArgument(brandSetWrapper, "BrandSetWrapper").IsNull().Throw();
            Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();

            this.brandSetWrapper = brandSetWrapper;
            this.dbContext       = dbContext;
        }
示例#4
0
        public UserService(IEfDbSetWrapper <User> UserSetWrapper, IOnLineShopDbContextSaveChanges dbContext)
        {
            Guard.WhenArgument(UserSetWrapper, "UserSetWrapper").IsNull().Throw();
            Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();

            this.userSetWrapper = UserSetWrapper;
            this.dbContext      = dbContext;
        }
        public OrderDetailsService(IEfDbSetWrapper <OrderDetail> orderDetailsSetWrapper, IOnLineShopDbContextSaveChanges dbContext)
        {
            Guard.WhenArgument(orderDetailsSetWrapper, "orderDetailsSetWrapper").IsNull().Throw();
            Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();

            this.orderDetailsSetWrapper = orderDetailsSetWrapper;
            this.dbContext = dbContext;
        }
示例#6
0
        public ContactInfoService(IEfDbSetWrapper <ContactInfo> contactInfoSetWrapper, IOnLineShopDbContextSaveChanges dbContext)
        {
            Guard.WhenArgument(contactInfoSetWrapper, "ContactInfoSetWrapper").IsNull().Throw();
            Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();

            this.contactInfoSetWrapper = contactInfoSetWrapper;
            this.dbContext             = dbContext;
        }
示例#7
0
        public CategoryService(IEfDbSetWrapper <Category> categorySetWrapper, IOnLineShopDbContextSaveChanges dbContext)
        {
            Guard.WhenArgument(categorySetWrapper, "categorySetWrapper").IsNull().Throw();
            Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();

            this.categorySetWrapper = categorySetWrapper;
            this.dbContext          = dbContext;
        }