/// <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); }
/// <summary> /// Create a new Product object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="code">Initial value of the Code property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="productGroupId">Initial value of the ProductGroupId property.</param> /// <param name="productUnitId">Initial value of the ProductUnitId property.</param> /// <param name="safeQuantity">Initial value of the SafeQuantity property.</param> /// <param name="price">Initial value of the Price property.</param> /// <param name="isSurface">Initial value of the IsSurface property.</param> /// <param name="allowSurface">Initial value of the AllowSurface property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param> /// <param name="lastModifiedDate">Initial value of the LastModifiedDate property.</param> public static Product CreateProduct(global::System.Int32 id, global::System.String code, global::System.String name, global::System.Int32 productGroupId, global::System.Int32 productUnitId, global::System.Int32 safeQuantity, global::System.Double price, global::System.Boolean isSurface, global::System.Boolean allowSurface, global::System.Int32 status, global::System.Int32 lastModifiedBy, global::System.DateTime lastModifiedDate) { Product product = new Product(); product.Id = id; product.Code = code; product.Name = name; product.ProductGroupId = productGroupId; product.ProductUnitId = productUnitId; product.SafeQuantity = safeQuantity; product.Price = price; product.IsSurface = isSurface; product.AllowSurface = allowSurface; product.Status = status; product.LastModifiedBy = lastModifiedBy; product.LastModifiedDate = lastModifiedDate; return product; }