Exemplo n.º 1
0
 /// <summary>
 /// 用于向 Shippers EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToShippers(Shipper shipper)
 {
     base.AddObject("Shippers", shipper);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 创建新的 Shipper 对象。
 /// </summary>
 /// <param name="shipperID">ShipperID 属性的初始值。</param>
 /// <param name="companyName">CompanyName 属性的初始值。</param>
 public static Shipper CreateShipper(global::System.Int32 shipperID, global::System.String companyName)
 {
     Shipper shipper = new Shipper();
     shipper.ShipperID = shipperID;
     shipper.CompanyName = companyName;
     return shipper;
 }