/// <summary> /// Create a new Products object. /// </summary> /// <param name="productNumber">Initial value of the ProductNumber property.</param> /// <param name="active">Initial value of the Active property.</param> /// <param name="category">Initial value of the Category property.</param> /// <param name="datetime">Initial value of the Datetime property.</param> public static Products CreateProducts(global::System.String productNumber, global::System.Boolean active, global::System.Int32 category, global::System.DateTime datetime) { Products products = new Products(); products.ProductNumber = productNumber; products.Active = active; products.Category = category; products.Datetime = datetime; return products; }
/// <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(Products products) { base.AddObject("Products", products); }