상속: IEntity, IOrderable
예제 #1
0
 public virtual void AddProduct(Product product)
 {
     var productCategory = new ProductCategory {Category = this, Product = product};
     product.ProductCategories.Add(productCategory);
     ProductCategories.Add(productCategory);
 }
예제 #2
0
 public virtual void AddCategory(Category category)
 {
     var productCategory = new ProductCategory {Category = category, Product = this};
     ProductCategories.Add(productCategory);
     category.ProductCategories.Add(productCategory);
 }
예제 #3
0
 public virtual void AddCategory(Category category, int position)
 {
     var productCategory = new ProductCategory
     {
         Category = category, 
         Product = this,
         Position = position
     };
     ProductCategories.Add(productCategory);
     category.ProductCategories.Add(productCategory);
 }
예제 #4
0
 partial void DeleteProductCategory(ProductCategory instance);
예제 #5
0
 partial void UpdateProductCategory(ProductCategory instance);
예제 #6
0
 partial void InsertProductCategory(ProductCategory instance);
예제 #7
0
		private void detach_ProductCategories(ProductCategory entity)
		{
			this.SendPropertyChanging();
			entity.Product = null;
		}
예제 #8
0
		private void attach_ProductCategories(ProductCategory entity)
		{
			this.SendPropertyChanging();
			entity.Category = this;
		}