Пример #1
0
 /// <summary>
 /// 更新生产厂家
 /// </summary>
 /// <param name="mod"></param>
 public override void UpdatePmManufacturer(Model.Procurement.PmManufacturer mod)
 {
     Context.Update <Model.Procurement.PmManufacturer>("PmManufacturer", mod).AutoMap(p => p.SysNo).Where(p => p.SysNo).Execute();
 }
Пример #2
0
 /// <summary>
 /// 添加生产厂家
 /// </summary>
 /// <param name="mod"></param>
 /// <returns></returns>
 public override int InsertPmManufacturer(Model.Procurement.PmManufacturer mod)
 {
     return(Context.Insert <Model.Procurement.PmManufacturer>("PmManufacturer", mod).AutoMap(p => p.SysNo).ExecuteReturnLastId <int>("SysNo"));
 }