示例#1
0
 public bool InsertUpdate(M_MTit model)
 {
     if (model.I_id > 0)
     {
         GetUpdate(model);
     }
     else
     {
         GetInsert(model);
     }
     return(true);
 }
示例#2
0
 public int GetInsert(M_MTit model)
 {
     return(Sql.insertID(TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
示例#3
0
 public bool UpdateByID(M_MTit model)
 {
     return(Sql.UpdateByIDs(TbName, PK, model.I_id.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }