/// <summary> /// Deprecated Method for adding a new object to the ProductTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductTypes(ProductType productType) { base.AddObject("ProductTypes", productType); }
/// <summary> /// Create a new ProductType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="parentTypeId">Initial value of the ParentTypeId property.</param> /// <param name="name">Initial value of the Name property.</param> public static ProductType CreateProductType(global::System.Int32 id, global::System.Int32 parentTypeId, global::System.String name) { ProductType productType = new ProductType(); productType.Id = id; productType.ParentTypeId = parentTypeId; productType.Name = name; return productType; }