我在 asp.net 中使用内联查询,但问题是我现在不知道如何正确使用 N 后缀请指导....
cn.Open();
SqlCommand cmd = new SqlCommand("insert into newsactivity VALUES(@newstitle, @newsdetails ,@dated,@type)",cn);
cmd.Parameters.AddWithValue("@newstitle",txtnewstitle.Text);
cmd.Parameters.AddWithValue("@newsdetails",N'txtnewsdetails.Text');