Click here to Skip to main content
16,016,562 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 9:45
dilkonika20-Feb-15 9:45 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 10:56
mveDave Kreskowiak20-Feb-15 10:56 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 11:10
dilkonika20-Feb-15 11:10 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 12:37
mveDave Kreskowiak20-Feb-15 12:37 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 12:47
dilkonika20-Feb-15 12:47 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 14:23
mveDave Kreskowiak20-Feb-15 14:23 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 14:30
dilkonika20-Feb-15 14:30 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 16:38
mveDave Kreskowiak20-Feb-15 16:38 
You have a choice. You can either

1) The slow way. Do the calculation in your property getter where you have to wait for EF to re-hydrate all the related child objects into memory and then your getter code applies its filter and does the calculation.

Or

2) You drop the property getter code and move the filtering to the query and let the database filter the child objects and do the math for you. Something the database engine was designed to do very well.

The choice is up to you.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 17:01
dilkonika20-Feb-15 17:01 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 17:54
mveDave Kreskowiak20-Feb-15 17:54 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 5:27
dilkonika21-Feb-15 5:27 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 7:35
mveDave Kreskowiak21-Feb-15 7:35 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 7:53
dilkonika21-Feb-15 7:53 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 8:01
mveDave Kreskowiak21-Feb-15 8:01 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 8:05
dilkonika21-Feb-15 8:05 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 12:59
mveDave Kreskowiak21-Feb-15 12:59 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 14:32
dilkonika21-Feb-15 14:32 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 15:38
mveDave Kreskowiak21-Feb-15 15:38 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 16:00
dilkonika21-Feb-15 16:00 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 16:44
mveDave Kreskowiak21-Feb-15 16:44 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 16:52
dilkonika21-Feb-15 16:52 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 17:28
dilkonika21-Feb-15 17:28 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak22-Feb-15 3:36
mveDave Kreskowiak22-Feb-15 3:36 
QuestionHow do I display different group boxes, according to radio button selected ? Pin
Member 1144766219-Feb-15 7:30
Member 1144766219-Feb-15 7:30 
AnswerRe: How do I display different group boxes, according to radio button selected ? Pin
Wendelius19-Feb-15 7:40
mentorWendelius19-Feb-15 7:40 

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.