/// <summary> /// 用于向 ProductCompositions EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToProductCompositions(ProductComposition productComposition) { base.AddObject("ProductCompositions", productComposition); }
/// <summary> /// 创建新的 ProductComposition 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="childProductId">ChildProductId 属性的初始值。</param> /// <param name="function">Function 属性的初始值。</param> /// <param name="descript">descript 属性的初始值。</param> /// <param name="value">Value 属性的初始值。</param> /// <param name="productCompositionId">ProductCompositionId 属性的初始值。</param> public static ProductComposition CreateProductComposition(global::System.Int32 id, global::System.Int32 childProductId, global::System.String function, global::System.String descript, global::System.String value, global::System.Int32 productCompositionId) { ProductComposition productComposition = new ProductComposition(); productComposition.Id = id; productComposition.ChildProductId = childProductId; productComposition.Function = function; productComposition.descript = descript; productComposition.Value = value; productComposition.ProductCompositionId = productCompositionId; return productComposition; }