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