objectquery Questions

3

Solved

I'm wondering if/how this is possible, if it is, I'm sure its a simple fix that I can't seem to figure out @SqlQuery("SELECT * FROM Table WHERE column LIKE '%:thingName%'") public Set<Things&gt...
Walling asked 31/5, 2013 at 21:8

3

Solved

I'm trying to apply the advice in this post: Tip 22 - How to make Include really Include It suggests a workaround for ensure eager loading works in the Entity Framework (4.2). That workaround invo...
Babylon asked 16/12, 2011 at 14:53

3

Solved

I'm developing a WebService that excecute linq to sql db and put the results into a VAR variable. Then I wanna serialize the result inside VAR to json format using javascript serializer (c#). Somet...
Sofko asked 18/10, 2011 at 17:40

2

Solved

I have an MVC-3 (RC1) application using Entity Framework 4. I wish to return a JSON object from a controller action. This object is referenced by other objects, which obviously return the referenc...
Faubourg asked 14/12, 2010 at 5:59

4

Solved

Could somebody help me to answer how to rewrite raw SQL filter WHERE (...) OR (...) with ObjectQuery bilder, please? String queryRaw = "SELECT ls.LocaleName, ls.IsActive, ls.LocaleDescription " + ...
Unipod asked 24/9, 2010 at 21:16

3

Solved

I've got a DBQuery<T> which converts to an IQueryable<T> (this bit works fine). But then I'm trying to convert the IQueryable to an ObjectQuery .. which fails :- public void Foo(this I...
Dextrality asked 22/1, 2011 at 4:8

1

Solved

I am building a repository and I've seen in many places 2 reasons not to expose IQueryable outside the repository. The first is because different LINQ providers could behave differently, and this ...
Pincince asked 15/8, 2012 at 5:36

1

Solved

I have an extension on IQueryable that allows passing in delimited string of property names which, when used causes query not to construct JOINs and effectively causes SELECT N+1 issue. What I not...
1

© 2022 - 2024 — McMap. All rights reserved.