Click here to Skip to main content
15,922,015 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionEntity framework : a query is not working as expected Pin
desanti5-Apr-19 8:25
desanti5-Apr-19 8:25 
AnswerRe: Entity framework : a query is not working as expected Pin
Richard Deeming5-Apr-19 9:06
mveRichard Deeming5-Apr-19 9:06 
GeneralRe: Entity framework : a query is not working as expected Pin
desanti5-Apr-19 10:11
desanti5-Apr-19 10:11 
GeneralRe: Entity framework : a query is not working as expected Pin
Dave Kreskowiak5-Apr-19 10:21
mveDave Kreskowiak5-Apr-19 10:21 
GeneralRe: Entity framework : a query is not working as expected Pin
desanti5-Apr-19 10:36
desanti5-Apr-19 10:36 
GeneralRe: Entity framework : a query is not working as expected Pin
Dave Kreskowiak5-Apr-19 10:50
mveDave Kreskowiak5-Apr-19 10:50 
GeneralRe: Entity framework : a query is not working as expected Pin
desanti5-Apr-19 11:52
desanti5-Apr-19 11:52 
GeneralRe: Entity framework : a query is not working as expected Pin
Dave Kreskowiak5-Apr-19 12:59
mveDave Kreskowiak5-Apr-19 12:59 
GeneralRe: Entity framework : a query is not working as expected Pin
desanti5-Apr-19 13:45
desanti5-Apr-19 13:45 
GeneralRe: Entity framework : a query is not working as expected Pin
Eddy Vluggen5-Apr-19 21:23
professionalEddy Vluggen5-Apr-19 21:23 
GeneralRe: Entity framework : a query is not working as expected Pin
Richard Deeming15-Apr-19 8:20
mveRichard Deeming15-Apr-19 8:20 
QuestionTrying to create generic object: SOLVED Pin
mo14923-Apr-19 6:53
mo14923-Apr-19 6:53 
AnswerRe: Trying to create generic object Pin
Richard Deeming3-Apr-19 7:39
mveRichard Deeming3-Apr-19 7:39 
QuestionVisual Studio 2010 project open in Visual Studio 2019 when run there is a error failed to sign Pin
Didier Cauberghe3-Apr-19 4:54
Didier Cauberghe3-Apr-19 4:54 
AnswerRe: Visual Studio 2010 project open in Visual Studio 2019 when run there is a error failed to sign Pin
Mycroft Holmes3-Apr-19 12:18
professionalMycroft Holmes3-Apr-19 12:18 
GeneralRe: Visual Studio 2010 project open in Visual Studio 2019 when run there is a error failed to sign Pin
Didier Cauberghe4-Apr-19 3:49
Didier Cauberghe4-Apr-19 3:49 
QuestionForce entity framework to load new data from database without disposing the context Pin
desanti2-Apr-19 3:21
desanti2-Apr-19 3:21 
AnswerRe: Force entity framework to load new data from database without disposing the context Pin
Dave Kreskowiak2-Apr-19 4:23
mveDave Kreskowiak2-Apr-19 4:23 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
desanti2-Apr-19 7:40
desanti2-Apr-19 7:40 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
Dave Kreskowiak2-Apr-19 9:11
mveDave Kreskowiak2-Apr-19 9:11 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
desanti2-Apr-19 9:22
desanti2-Apr-19 9:22 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
Dave Kreskowiak2-Apr-19 11:24
mveDave Kreskowiak2-Apr-19 11:24 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
desanti3-Apr-19 5:01
desanti3-Apr-19 5:01 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
Dave Kreskowiak3-Apr-19 7:22
mveDave Kreskowiak3-Apr-19 7:22 
GeneralRe: Force entity framework to load new data from database without disposing the context Pin
desanti3-Apr-19 8:23
desanti3-Apr-19 8:23 
Quote:
How does EF know that the records are deleted? It doesn't. The records just don't show up in the result set from the database.


Ok , and why EF does not keep the records that are in local cache , but instead "use the information" that those records are not show up in the result set of database ? And why in the case of modified records , "the information from database" is not used , and it's just keep the records from local cache.

Quote:
Move on to the problem of just telling EF to reload a specific table. Great, you now have all of the data from that table, but how to do handle the case where the cached data is "dirty"?


If the cached data is modified , i think EF should let the programmers to choose . If i try to reload data from database when cached data is modified , then i'm responsible to get the new data from database and overwrite those changes. But In my application for example , if a modification was made , i don't let the users to reload data from database. It's simple. And how you will resolve the problem when cached data is modified and i create a new context ( as many have suggested this idea for my problem). This is the same problem. I think these problems EF should leave in the hand of programmers.

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.