Exemple #1
0
        /// <summary>
        /// 建立新 orderDetail 物件。
        /// </summary>
        /// <param name="id">id 屬性的初始值。</param>
        /// <param name="orderId">orderId 屬性的初始值。</param>
        /// <param name="name">name 屬性的初始值。</param>
        /// <param name="amount">amount 屬性的初始值。</param>
        /// <param name="price">price 屬性的初始值。</param>
        public static orderDetail CreateorderDetail(global::System.Int32 id, global::System.Int32 orderId, global::System.String name, global::System.Int32 amount, global::System.Int32 price)
        {
            orderDetail orderDetail = new orderDetail();

            orderDetail.id      = id;
            orderDetail.orderId = orderId;
            orderDetail.name    = name;
            orderDetail.amount  = amount;
            orderDetail.price   = price;
            return(orderDetail);
        }
Exemple #2
0
 /// <summary>
 /// 將新物件加入 orderDetail EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddToorderDetail(orderDetail orderDetail)
 {
     base.AddObject("orderDetail", orderDetail);
 }