/// <summary> /// 更新集装箱信息 /// </summary> /// <param name="mod"></param> public override void UpdatePmContainer(Model.Procurement.PmContainer mod) { Context.Update <Model.Procurement.PmContainer>("PmContainer", mod).AutoMap(p => p.SysNo).Where(p => p.SysNo).Execute(); }
/// <summary> /// 添加集装箱信息 /// </summary> /// <param name="mod"></param> /// <returns></returns> public override int InsertPmContainer(Model.Procurement.PmContainer mod) { return(Context.Insert <Model.Procurement.PmContainer>("PmContainer", mod).AutoMap(p => p.SysNo).ExecuteReturnLastId <int>("SysNo")); }