コード例 #1
0
ファイル: Action.designer.cs プロジェクト: ronymaychan/demos
 partial void UpdateProductEntity(ProductEntity instance);
コード例 #2
0
ファイル: Action.designer.cs プロジェクト: ronymaychan/demos
 partial void DeleteProductEntity(ProductEntity instance);
コード例 #3
0
ファイル: Action.designer.cs プロジェクト: ronymaychan/demos
		private void detach_ProductEntities(ProductEntity entity)
		{
			this.SendPropertyChanging();
			entity.CategoryEntity = null;
		}
コード例 #4
0
ファイル: Action.designer.cs プロジェクト: ronymaychan/demos
 partial void InsertProductEntity(ProductEntity instance);
コード例 #5
0
 partial void DeleteProductEntity(ProductEntity instance);
コード例 #6
0
 partial void UpdateProductEntity(ProductEntity instance);
コード例 #7
0
 partial void InsertProductEntity(ProductEntity instance);
コード例 #8
0
 private void detach_ProductEntities(ProductEntity entity)
 {
     this.SendPropertyChanging();
     entity.CategoryEntity = null;
 }
コード例 #9
0
ファイル: Mapper.cs プロジェクト: ronymaychan/demos
 /// <summary>
 /// Maps product entity to product business object.
 /// </summary>
 /// <param name="p">A product entity.</param>
 /// <returns>A product business object.</returns>
 internal static Product ToBusinessObject(ProductEntity p)
 {
     return new Product
     {
         ProductId = p.ProductId,
         ProductName = p.ProductName,
         UnitPrice = (double)p.UnitPrice,
         UnitsInStock = p.UnitsInStock,
         Weight = p.Weight,
         Version = VersionConverter.ToString(p.Version)
     };
 }