public ActionResult Edit(StraightCampShop bean)
 {
     iGenericRepository.Update(bean);
     return View("Index");
 }
Beispiel #2
0
 /// <summary>
 /// 用于向 StraightCampShops EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToStraightCampShops(StraightCampShop straightCampShop)
 {
     base.AddObject("StraightCampShops", straightCampShop);
 }
 public ActionResult Create(StraightCampShop bean)
 {
     iGenericRepository.Save(bean);
     return View("Index");//new {IsSuccess = true, Message = "保存成功!"}, JsonRequestBehavior.AllowGet);
 }
Beispiel #4
0
 /// <summary>
 /// 创建新的 StraightCampShop 对象。
 /// </summary>
 /// <param name="zydBh">ZydBh 属性的初始值。</param>
 /// <param name="zydName">ZydName 属性的初始值。</param>
 /// <param name="zydAddress">ZydAddress 属性的初始值。</param>
 public static StraightCampShop CreateStraightCampShop(global::System.String zydBh, global::System.String zydName, global::System.String zydAddress)
 {
     StraightCampShop straightCampShop = new StraightCampShop();
     straightCampShop.ZydBh = zydBh;
     straightCampShop.ZydName = zydName;
     straightCampShop.ZydAddress = zydAddress;
     return straightCampShop;
 }