コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ProductModels EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductModels(ProductModel productModel)
 {
     base.AddObject("ProductModels", productModel);
 }
コード例 #2
0
 /// <summary>
 /// Create a new ProductModel object.
 /// </summary>
 /// <param name="productModelID">Initial value of the ProductModelID 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 ProductModel CreateProductModel(global::System.Int32 productModelID, global::System.String name, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     ProductModel productModel = new ProductModel();
     productModel.ProductModelID = productModelID;
     productModel.Name = name;
     productModel.rowguid = rowguid;
     productModel.ModifiedDate = modifiedDate;
     return productModel;
 }