public bool UpdateByID(M_Comment model) { return(Sql.UpdateByIDs(TbName, PK, model.CommentID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters())); }
public int insert(M_Comment model) { return(Sql.insertID(TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model))); }
/// <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); }