StringBuilder sb = new StringBuilder();Listparameters =new List ();
方法1
sb.Append(" and s.Name LIKE @Name");parameters.Add(new SqlParameter("@Name", "%"+Name+"%"));
方法2
sb.Append(" AND Name like N'%'+@Name+'%' ");parameters.Add(new SqlParameter("@Name", Name));