Пример #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);
 }
Пример #2
0
		private void detach_ProductImages(ProductImage entity)
		{
			this.SendPropertyChanging();
			entity.Image = null;
		}
Пример #3
0
		private void attach_ProductImages(ProductImage entity)
		{
			this.SendPropertyChanging();
			entity.Image = this;
		}
Пример #4
0
 partial void DeleteProductImage(ProductImage instance);
Пример #5
0
 partial void UpdateProductImage(ProductImage instance);
Пример #6
0
 partial void InsertProductImage(ProductImage instance);