Example #1
0
 /// <summary>
 /// 用于向 PriceLogs EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToPriceLogs(PriceLog priceLog)
 {
     base.AddObject("PriceLogs", priceLog);
 }
Example #2
0
 /// <summary>
 /// 创建新的 PriceLog 对象。
 /// </summary>
 /// <param name="priceID">PriceID 属性的初始值。</param>
 /// <param name="scBh">ScBh 属性的初始值。</param>
 /// <param name="price">Price 属性的初始值。</param>
 /// <param name="priceTime">PriceTime 属性的初始值。</param>
 /// <param name="addUserID">AddUserID 属性的初始值。</param>
 /// <param name="addTime">AddTime 属性的初始值。</param>
 public static PriceLog CreatePriceLog(global::System.Guid priceID, global::System.String scBh, global::System.Decimal price, global::System.DateTime priceTime, global::System.Guid addUserID, global::System.DateTime addTime)
 {
     PriceLog priceLog = new PriceLog();
     priceLog.PriceID = priceID;
     priceLog.ScBh = scBh;
     priceLog.Price = price;
     priceLog.PriceTime = priceTime;
     priceLog.AddUserID = addUserID;
     priceLog.AddTime = addTime;
     return priceLog;
 }
 public ActionResult Create(PriceLog priceLog)
 {
     priceLog.PriceID = Guid.NewGuid();
     iRepository.Save(priceLog);
     return Json(new {IsScuess = true, Message = "保存成功!"}, JsonRequestBehavior.AllowGet);
 }