示例#1
0
 partial void UpdateProductEntity(ProductEntity instance);
示例#2
0
 partial void DeleteProductEntity(ProductEntity instance);
示例#3
0
		private void detach_ProductEntities(ProductEntity entity)
		{
			this.SendPropertyChanging();
			entity.CategoryEntity = null;
		}
示例#4
0
 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
 /// <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)
     };
 }