The SqlParameter is already contained by another SqlParameterCollection
问题 I'm using EF DbContext SqlQuery to get a list of paged objects using PagedList (https://github.com/TroyGoode/PagedList) and I'm getting the following error: "The SqlParameter is already contained by another SqlParameterCollection" Here's my repository code: var db = (DbContext)DataContext; const string sqlString = @" WITH UserFollowerList AS ( SELECT uf.FollowId FROM UserFollow uf WHERE uf.UserId = @UserId ) SELECT * FROM UserFollowerList uf INNER JOIN [User] u ON uf.FollowId = u.UserId WHERE