コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ProductSubcategories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductSubcategories(ProductSubcategory productSubcategory)
 {
     base.AddObject("ProductSubcategories", productSubcategory);
 }
コード例 #2
0
 /// <summary>
 /// Create a new ProductSubcategory object.
 /// </summary>
 /// <param name="productSubcategoryID">Initial value of the ProductSubcategoryID property.</param>
 /// <param name="productCategoryID">Initial value of the ProductCategoryID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static ProductSubcategory CreateProductSubcategory(global::System.Int32 productSubcategoryID, global::System.Int32 productCategoryID, global::System.String name, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     ProductSubcategory productSubcategory = new ProductSubcategory();
     productSubcategory.ProductSubcategoryID = productSubcategoryID;
     productSubcategory.ProductCategoryID = productCategoryID;
     productSubcategory.Name = name;
     productSubcategory.rowguid = rowguid;
     productSubcategory.ModifiedDate = modifiedDate;
     return productSubcategory;
 }