/// <summary> /// Create a new ProductGroup object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="productGroupName">Initial value of the ProductGroupName property.</param> /// <param name="discontinued">Initial value of the Discontinued property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static ProductGroup CreateProductGroup(global::System.Int32 id, global::System.String productGroupName, global::System.Boolean discontinued, global::System.Byte[] rowVersion) { ProductGroup productGroup = new ProductGroup(); productGroup.Id = id; productGroup.ProductGroupName = productGroupName; productGroup.Discontinued = discontinued; productGroup.RowVersion = rowVersion; return productGroup; }
/// <summary> /// Deprecated Method for adding a new object to the ProductGroups EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductGroups(ProductGroup productGroup) { base.AddObject("ProductGroups", productGroup); }
/// <summary> /// Create a new ProductGroup object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> /// <param name="groupName">Initial value of the GroupName property.</param> /// <param name="active">Initial value of the Active property.</param> public static ProductGroup CreateProductGroup(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.String groupName, global::System.Boolean active) { ProductGroup productGroup = new ProductGroup(); productGroup.Id = id; productGroup.RowVersion = rowVersion; productGroup.GroupName = groupName; productGroup.Active = active; return productGroup; }