public int AddNewsPic(NewsPic model)
{
string sql = "insert into T_NewsPic(NewsId,PicUrl) output inserted.NewsPicId values(@NewsId,@PicUrl)";
int id = (int)SqlHelper.ExcuteScalar(sql
, new SqlParameter("NewsId", model.NewsId)
, new SqlParameter("PicUrl", model.PicUrl)
);
return id;
}
总提示output 处有错误,不知道这是为啥呢? |