예제 #1
0
 public bool UpdateByID(M_Comment model)
 {
     return(Sql.UpdateByIDs(TbName, PK, model.CommentID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }
예제 #2
0
 public int insert(M_Comment model)
 {
     return(Sql.insertID(TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
예제 #3
0
 /// <summary>
 /// 发表(增加)评论
 /// </summary>
 /// <param name="commentInfo"></param>
 /// <returns></returns>
 public bool Add(M_Comment model)
 {
     return(Sql.insertID(TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)) > 0);
 }