コード例 #1
0
 /// <summary>
 /// ProductCategory EntitySet に新しいオブジェクトを追加するための非推奨のメソッドです。代わりに、関連付けられている ObjectSet&lt;T&gt; プロパティの .Add メソッドを使用してください。
 /// </summary>
 public void AddToProductCategory(ProductCategory productCategory)
 {
     base.AddObject("ProductCategory", productCategory);
 }
コード例 #2
0
 /// <summary>
 /// 新しい ProductCategory オブジェクトを作成します。
 /// </summary>
 /// <param name="productCategoryID">ProductCategoryID プロパティの初期値。</param>
 /// <param name="name">Name プロパティの初期値。</param>
 /// <param name="rowguid">rowguid プロパティの初期値。</param>
 /// <param name="modifiedDate">ModifiedDate プロパティの初期値。</param>
 public static ProductCategory CreateProductCategory(global::System.Int32 productCategoryID, global::System.String name, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     ProductCategory productCategory = new ProductCategory();
     productCategory.ProductCategoryID = productCategoryID;
     productCategory.Name = name;
     productCategory.rowguid = rowguid;
     productCategory.ModifiedDate = modifiedDate;
     return productCategory;
 }