public EventChargeModel(EventCharge charge) { _charge = charge; _product = _charge.Product; }
/// <summary> /// Create a new Product object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="typeID">Initial value of the TypeID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="grossPrice">Initial value of the GrossPrice property.</param> /// <param name="vATRateID">Initial value of the VATRateID property.</param> /// <param name="productGroupID">Initial value of the ProductGroupID property.</param> /// <param name="departmentID">Initial value of the DepartmentID property.</param> /// <param name="isAvailable">Initial value of the isAvailable property.</param> public static Product CreateProduct(global::System.Guid id, global::System.Guid typeID, global::System.String name, global::System.Single grossPrice, global::System.Guid vATRateID, global::System.Guid productGroupID, global::System.Guid departmentID, global::System.Boolean isAvailable) { Product product = new Product(); product.ID = id; product.TypeID = typeID; product.Name = name; product.GrossPrice = grossPrice; product.VATRateID = vATRateID; product.ProductGroupID = productGroupID; product.DepartmentID = departmentID; product.isAvailable = isAvailable; return product; }
public EventBookedProductModel(EventBookedProduct eventBookedProduct) { IncVat = true; EventBookedProduct = eventBookedProduct; _product = eventBookedProduct.Product; EventCharge = new EventChargeModel(EventBookedProduct.EventCharge); }
/// <summary> /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProducts(Product product) { base.AddObject("Products", product); }
public ProductModel(Product product) { _product = product; LoadEventTypes(); RefreshEventTypesAbbreviations(); }