예제 #1
0
 public bool InsertUpdate(M_BindPro model)
 {
     if (model.ID > 0)
     {
         GetUpdate(model);
     }
     else
     {
         GetInsert(model);
     }
     return(true);
 }
예제 #2
0
 public bool GetUpdate(M_BindPro model)
 {
     return(Sql.UpdateByIDs(TbName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }
예제 #3
0
 public bool GetInsert(M_BindPro model)
 {
     Sql.insertID(TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model));
     return(true);
 }
예제 #4
0
 public int insert(M_BindPro model)
 {
     return(Sql.insertID(TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }