Exemplo n.º 1
0
 /// <summary>
 ///更新记录
 /// </summary>
 /// <param name="Student"></param>
 /// <returns></returns>
 public bool GetUpdate(M_Student model)
 {
     return(Sql.UpdateByIDs(TbName, PK, model.Noteid.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters(model)));
 }
Exemplo n.º 2
0
 /// <summary>
 ///添加记录
 /// </summary>
 /// <param name="Student"></param>
 /// <returns></returns>
 public bool GetInsert(M_Student model)
 {
     return(Sql.insertID(TbName, model.GetParameters(model), BLLCommon.GetParas(model), BLLCommon.GetFields(model)) > 0);
 }