StringBuilder sb = new StringBuilder();
List<SqlParameter> parameters =new List<SqlParameter>();
方法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));