コード例 #1
0
ファイル: Product.cs プロジェクト: mikehadlow/sutekishop
 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);