System.EntryPointNotFoundException: 未发现入口点
Response.AppendHeader("X-Total-Row-Count", db.Posts.Count().ToString());
ObjectQuery<Post> posts = (db as IObjectContextAdapter).ObjectContext.CreateObjectSet<Post>();
posts = (ObjectQuery<Post>)posts.Include(p => p.Category);
posts = posts.OrderBy("it." + orderBy + (desc ? " desc" : ""));