Beispiel #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);
 }
		private void detach_ProductImages(ProductImage entity)
		{
			this.SendPropertyChanging();
			entity.Image = null;
		}
		private void attach_ProductImages(ProductImage entity)
		{
			this.SendPropertyChanging();
			entity.Image = this;
		}
 partial void DeleteProductImage(ProductImage instance);
 partial void UpdateProductImage(ProductImage instance);
 partial void InsertProductImage(ProductImage instance);