Top "Objectquery" questions

How to use ObjectQuery with Where filter separated by OR clause

Could somebody help me to answer how to rewrite raw SQL filter WHERE (...) OR (...) with ObjectQuery bilder, please? String queryRaw = "…

c# sql filter where objectquery
How can i convert a DBQuery<T> to an ObjectQuery<T>?

I've got a DBQuery<T> which converts to an IQueryable<T> (this bit works fine). But …

.net entity-framework entity-framework-4 objectquery
Serialize Linq Results directly to JSON

I'm developing a WebService that excecute linq to sql db and put the results into a VAR variable. Then I …

c# linq json serialization objectquery
How can I convert IQueryable<T> to ObjectQuery<T>?

I'm trying to apply the advice in this post: Tip 22 - How to make Include really Include It suggests a …

c# .net iqueryable eager-loading objectquery
DbSet<T>.Include() causes SELECT N+1 when used in extension method

I have an extension on IQueryable that allows passing in delimited string of property names which, when used causes query …

entity-framework linq-to-entities dynamic-linq objectquery
Repository / IQueryable / Query Object

I am building a repository and I've seen in many places 2 reasons not to expose IQueryable outside the repository. 1) The …

c# repository-pattern iqueryable objectquery
How do I avoid a circular reference while serializing Entity Framework class

I have an MVC-3 (RC1) application using Entity Framework 4. I wish to return a JSON object from a controller action. …

entity-framework-4 asp.net-mvc-3 objectquery