Example #1
0
 public virtual void AddProductImage(Image image, int position)
 {
     var productImage = new ProductImage
     {
         Image = image,
         Position = position,
         Product = this
     };
     image.ProductImages.Add(productImage);
     ProductImages.Add(productImage);
 }
Example #2
0
		private void detach_ProductImages(ProductImage entity)
		{
			this.SendPropertyChanging();
			entity.Image = null;
		}
Example #3
0
		private void attach_ProductImages(ProductImage entity)
		{
			this.SendPropertyChanging();
			entity.Image = this;
		}
Example #4
0
 partial void DeleteProductImage(ProductImage instance);
Example #5
0
 partial void UpdateProductImage(ProductImage instance);
Example #6
0
 partial void InsertProductImage(ProductImage instance);