Example #1
0
 /// <summary>
 /// 用于向 SalesRecords EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToSalesRecords(SalesRecord salesRecord)
 {
     base.AddObject("SalesRecords", salesRecord);
 }
Example #2
0
 /// <summary>
 /// 创建新的 SalesRecord 对象。
 /// </summary>
 /// <param name="soldNoteID">SoldNoteID 属性的初始值。</param>
 /// <param name="scZydBh">ScZydBh 属性的初始值。</param>
 /// <param name="scBh">ScBh 属性的初始值。</param>
 /// <param name="scPrice">ScPrice 属性的初始值。</param>
 /// <param name="scWeight">ScWeight 属性的初始值。</param>
 /// <param name="jyTime">JyTime 属性的初始值。</param>
 /// <param name="jyJlID">JyJlID 属性的初始值。</param>
 public static SalesRecord CreateSalesRecord(global::System.Guid soldNoteID, global::System.String scZydBh, global::System.String scBh, global::System.Decimal scPrice, global::System.String scWeight, global::System.DateTime jyTime, global::System.String jyJlID)
 {
     SalesRecord salesRecord = new SalesRecord();
     salesRecord.SoldNoteID = soldNoteID;
     salesRecord.ScZydBh = scZydBh;
     salesRecord.ScBh = scBh;
     salesRecord.ScPrice = scPrice;
     salesRecord.ScWeight = scWeight;
     salesRecord.JyTime = jyTime;
     salesRecord.JyJlID = jyJlID;
     return salesRecord;
 }