Click here to Skip to main content
15,895,809 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Darned Entity Framework! Pin
#realJSOP5-Sep-19 11:48
mve#realJSOP5-Sep-19 11:48 
GeneralRe: Darned Entity Framework! Pin
honey the codewitch5-Sep-19 18:03
mvahoney the codewitch5-Sep-19 18:03 
GeneralRe: Darned Entity Framework! Pin
PIEBALDconsult5-Sep-19 7:40
mvePIEBALDconsult5-Sep-19 7:40 
GeneralRe: Darned Entity Framework! Pin
#realJSOP5-Sep-19 11:48
mve#realJSOP5-Sep-19 11:48 
JokeRe: Darned Entity Framework! Pin
Peter_in_27805-Sep-19 12:34
professionalPeter_in_27805-Sep-19 12:34 
GeneralRe: Darned Entity Framework! Pin
Richard Deeming5-Sep-19 7:40
mveRichard Deeming5-Sep-19 7:40 
GeneralRe: Darned Entity Framework! Pin
Jörgen Andersson5-Sep-19 7:46
professionalJörgen Andersson5-Sep-19 7:46 
GeneralRe: Darned Entity Framework! Pin
honey the codewitch5-Sep-19 19:31
mvahoney the codewitch5-Sep-19 19:31 
If I had to guess it has to do with the order of your predicates.

in C#, if(null==foo || 0==foo.Length) - where foo is a string, basically works because the null==foo is evaluated first, and it short circuits the rest of the conditional, meaning foo.Length isn't compared if foo is null.

It's possible your query is doing something like this where it has a series of predicate/clauses in a condition and one of them is short circuiting the rest (which sometimes is what you want) - moving that clause to the beginning may have changed the order of evaluation of those predicates, causing it to skip the field you wanted to be suppressed.

That's my initial read.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: Darned Entity Framework! Pin
  Forogar  6-Sep-19 2:38
professional  Forogar  6-Sep-19 2:38 
GeneralRe: Darned Entity Framework! Pin
honey the codewitch6-Sep-19 6:50
mvahoney the codewitch6-Sep-19 6:50 
GeneralRe: Darned Entity Framework! Pin
  Forogar  6-Sep-19 7:26
professional  Forogar  6-Sep-19 7:26 
GeneralRe: Darned Entity Framework! Pin
honey the codewitch6-Sep-19 7:28
mvahoney the codewitch6-Sep-19 7:28 
GeneralThought of the Day Pin
OriginalGriff5-Sep-19 4:40
mveOriginalGriff5-Sep-19 4:40 
GeneralRe: Thought of the Day Pin
DRHuff5-Sep-19 4:41
DRHuff5-Sep-19 4:41 
GeneralRe: Thought of the Day Pin
W Balboos, GHB5-Sep-19 6:07
W Balboos, GHB5-Sep-19 6:07 
PraiseRe: Thought of the Day Pin
lopatir5-Sep-19 4:44
lopatir5-Sep-19 4:44 
GeneralRe: Thought of the Day Pin
jeron15-Sep-19 4:57
jeron15-Sep-19 4:57 
QuestionRe: Thought of the Day Pin
littleGreenDude5-Sep-19 5:01
littleGreenDude5-Sep-19 5:01 
GeneralRe: Thought of the Day Pin
W Balboos, GHB5-Sep-19 5:13
W Balboos, GHB5-Sep-19 5:13 
GeneralRe: Thought of the Day Pin
Herman<T>.Instance5-Sep-19 5:24
Herman<T>.Instance5-Sep-19 5:24 
GeneralRe: Thought of the Day Pin
PIEBALDconsult5-Sep-19 7:34
mvePIEBALDconsult5-Sep-19 7:34 
GeneralRe: Thought of the Day Pin
Jörgen Andersson5-Sep-19 7:49
professionalJörgen Andersson5-Sep-19 7:49 
GeneralRe: Thought of the Day Pin
DRHuff5-Sep-19 10:12
DRHuff5-Sep-19 10:12 
GeneralRe: Thought of the Day Pin
Graeme Henderson5-Sep-19 23:34
Graeme Henderson5-Sep-19 23:34 
GeneralRe: Thought of the Day Pin
Mike Hankey5-Sep-19 9:22
mveMike Hankey5-Sep-19 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.