partial void UpdateProductEntity(ProductEntity instance);
partial void DeleteProductEntity(ProductEntity instance);
private void detach_ProductEntities(ProductEntity entity) { this.SendPropertyChanging(); entity.CategoryEntity = null; }
partial void InsertProductEntity(ProductEntity instance);
/// <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) }; }