none
ObjectQuery<Post> posts = (db as IObjectContextAdapter).ObjectContext.CreateObjectSet<Post>(); RRS feed

  • 问题

  • 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" : ""));

    2011年10月31日 21:56