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