Exemplo n.º 1
0
 public static int InsertRelCategory(int productID, int categoryID)
 {
     var relCat = new ProductRelCategory()
     {
         ProductID = productID,
         CategoryID = categoryID
     };
     db.ProductRelCategories.InsertOnSubmit(relCat);
     db.SubmitChanges();
     
     return 1;
 }
Exemplo n.º 2
0
 partial void DeleteProductRelCategory(ProductRelCategory instance);
Exemplo n.º 3
0
 partial void UpdateProductRelCategory(ProductRelCategory instance);
Exemplo n.º 4
0
 partial void InsertProductRelCategory(ProductRelCategory instance);
Exemplo n.º 5
0
		private void detach_ProductRelCategories(ProductRelCategory entity)
		{
			this.SendPropertyChanging();
			entity.Product = null;
		}
Exemplo n.º 6
0
		private void attach_ProductRelCategories(ProductRelCategory entity)
		{
			this.SendPropertyChanging();
			entity.Category = this;
		}