/// <summary> /// 创建新的 SubOrder 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="orderID">OrderID 属性的初始值。</param> /// <param name="recipient">Recipient 属性的初始值。</param> /// <param name="recipientAddress">RecipientAddress 属性的初始值。</param> public static SubOrder CreateSubOrder(global::System.Int32 id, global::System.Int32 orderID, global::System.String recipient, global::System.String recipientAddress) { SubOrder subOrder = new SubOrder(); subOrder.ID = id; subOrder.OrderID = orderID; subOrder.Recipient = recipient; subOrder.RecipientAddress = recipientAddress; return(subOrder); }
/// <summary> /// 用于向 SubOrders EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToSubOrders(SubOrder subOrder) { base.AddObject("SubOrders", subOrder); }
/// <summary> /// 创建新的 SubOrder 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="orderID">OrderID 属性的初始值。</param> /// <param name="recipient">Recipient 属性的初始值。</param> /// <param name="recipientAddress">RecipientAddress 属性的初始值。</param> public static SubOrder CreateSubOrder(global::System.Int32 id, global::System.Int32 orderID, global::System.String recipient, global::System.String recipientAddress) { SubOrder subOrder = new SubOrder(); subOrder.ID = id; subOrder.OrderID = orderID; subOrder.Recipient = recipient; subOrder.RecipientAddress = recipientAddress; return subOrder; }