Exemple #1
0
 /// <summary>
 /// 用于向 ProductCustomTypes EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToProductCustomTypes(ProductCustomType productCustomType)
 {
     base.AddObject("ProductCustomTypes", productCustomType);
 }
Exemple #2
0
 /// <summary>
 /// 创建新的 ProductCustomType 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="productId">ProductId 属性的初始值。</param>
 /// <param name="productCustomCategoryId">ProductCustomCategoryId 属性的初始值。</param>
 public static ProductCustomType CreateProductCustomType(global::System.Int32 id, global::System.Int32 productId, global::System.Int32 productCustomCategoryId)
 {
     ProductCustomType productCustomType = new ProductCustomType();
     productCustomType.Id = id;
     productCustomType.ProductId = productId;
     productCustomType.ProductCustomCategoryId = productCustomCategoryId;
     return productCustomType;
 }