Example #1
0
 public bool InsertUpdate(M_MiUserInfo model)
 {
     if (model.M_id > 0)
     {
         UpdateByID(model);
     }
     else
     {
         insert(model);
     }
     return(true);
 }
Example #2
0
 public bool GetUpdate(M_MiUserInfo model)
 {
     return(UpdateByID(model));
 }
Example #3
0
 public int insert(M_MiUserInfo model)
 {
     return(Sql.insert(strTableName, model.GetParameters(model), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
Example #4
0
 public int GetInsert(M_MiUserInfo model)
 {
     return(insert(model));
 }
Example #5
0
 public bool UpdateByID(M_MiUserInfo model)
 {
     return(Sql.UpdateByIDs(strTableName, PK, model.M_id.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters(model)));
 }