Example #1
0
 /// <summary>
 /// 修改采购库存数据
 /// </summary>
 /// <param name="mod"></param>
 public override void UpdatePmWareGoodsDao(Model.Procurement.PmWareGoods mod)
 {
     Context.Update("PmWareGoods", mod).AutoMap(p => p.SysNo).Where(p => p.SysNo).Execute();
 }
Example #2
0
 /// <summary>
 /// 插入采购库存数据
 /// </summary>
 /// <param name="mod"></param>
 /// <returns></returns>
 public override int InsertPmWareGoodsDao(Model.Procurement.PmWareGoods mod)
 {
     return(Context.Insert("PmWareGoods", mod).AutoMap(p => p.SysNo).ExecuteReturnLastId <int>("SysNo"));
 }