Click here to Skip to main content
15,915,019 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: Mama Mia, that's a spicy meatball! Pin
dandy725-Sep-19 10:12
dandy725-Sep-19 10:12 
GeneralRe: Mama Mia, that's a spicy meatball! Pin
OriginalGriff5-Sep-19 10:37
mveOriginalGriff5-Sep-19 10:37 
GeneralRe: Mama Mia, that's a spicy meatball! Pin
PIEBALDconsult5-Sep-19 10:56
mvePIEBALDconsult5-Sep-19 10:56 
GeneralRe: Mama Mia, that's a spicy meatball! Pin
honey the codewitch5-Sep-19 19:27
mvahoney the codewitch5-Sep-19 19:27 
GeneralRe: Mama Mia, that's a spicy meatball! Pin
Mark_Wallace5-Sep-19 19:51
Mark_Wallace5-Sep-19 19:51 
GeneralRe: Mama Mia, that's a spicy meatball! Pin
Munchies_Matt5-Sep-19 21:16
Munchies_Matt5-Sep-19 21:16 
GeneralRe: Mama Mia, that's a spicy meatball! Pin
Jörgen Andersson5-Sep-19 22:58
professionalJörgen Andersson5-Sep-19 22:58 
RantDarned Entity Framework! Pin
  Forogar  5-Sep-19 7:05
professional  Forogar  5-Sep-19 7:05 
I had a perfectly good linq query.

Doing some testing on specific data meant I added one extra filter on the where clause saying basically "&& a.id == "A54321" - simple.

The query blew up because it referenced a field that was not yet defined in TEST (but was in DEV). My query didn't reference the field at all but somehow EF picked up that it needed to be ignored and referenced it so that it could ignore it(?) - causing the crash. OMG | :OMG:

When I didn't add the extra filter the query worked fine. A friend suggested I should add the filter before the other parts of the where clause - so I did - and it worked! WTF | :WTF:

Neither of us can understand why. Confused | :confused:

Darned EF! Mad | :mad:
- I would love to change the world, but they won’t give me the source code.

GeneralRe: Darned Entity Framework! Pin
honey the codewitch5-Sep-19 7:29
mvahoney the codewitch5-Sep-19 7:29 
GeneralRe: Darned Entity Framework! Pin
#realJSOP5-Sep-19 11:48
professional#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
professional#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 
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 

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.