Click here to Skip to main content
15,887,350 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Make setup file Pin
Member 136226275-Feb-18 2:48
Member 136226275-Feb-18 2:48 
GeneralRe: Make setup file Pin
Eddy Vluggen5-Feb-18 2:52
professionalEddy Vluggen5-Feb-18 2:52 
GeneralRe: Make setup file Pin
Member 136226275-Feb-18 3:30
Member 136226275-Feb-18 3:30 
GeneralRe: Make setup file Pin
Eddy Vluggen5-Feb-18 5:08
professionalEddy Vluggen5-Feb-18 5:08 
QuestionStrange behaviour with Entirty Framework Query Pin
desanti29-Jan-18 9:35
desanti29-Jan-18 9:35 
AnswerRe: Strange behaviour with Entirty Framework Query Pin
Richard Deeming29-Jan-18 10:30
mveRichard Deeming29-Jan-18 10:30 
GeneralRe: Strange behaviour with Entirty Framework Query Pin
desanti29-Jan-18 13:41
desanti29-Jan-18 13:41 
GeneralRe: Strange behaviour with Entirty Framework Query Pin
Richard Deeming30-Jan-18 0:32
mveRichard Deeming30-Jan-18 0:32 
If you only want to query the entities which have already been loaded into memory, then you can query the DbSet(TEntity).Local property[^]:
VB.NET
' Query the database:
query1 = (From t In context.table1 Where t.quantity > 0 Select t).ToList()

query1.First().Quantity -= 3

' Query the local cache:
query1 = (From t In context.table1.Local Where t.quantity > 0 Select t).ToList()

However, this will not load any new entities which have been added to the database since your first query.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionHow can I group multiple datatable columns, with sum/count colyms Pin
Member 1361559729-Jan-18 7:55
Member 1361559729-Jan-18 7:55 
AnswerRe: How can I group multiple datatable columns, with sum/count colyms Pin
Eddy Vluggen29-Jan-18 12:06
professionalEddy Vluggen29-Jan-18 12:06 
GeneralRe: How can I group multiple datatable columns, with sum/count colyms Pin
Member 1361559730-Jan-18 23:28
Member 1361559730-Jan-18 23:28 
GeneralRe: How can I group multiple datatable columns, with sum/count colyms Pin
Eddy Vluggen31-Jan-18 1:28
professionalEddy Vluggen31-Jan-18 1:28 
QuestionCSV to Datagridview Pin
mishphar26-Jan-18 8:28
mishphar26-Jan-18 8:28 
AnswerRe: CSV to Datagridview Pin
Gerry Schmitz27-Jan-18 12:28
mveGerry Schmitz27-Jan-18 12:28 
AnswerRe: CSV to Datagridview Pin
Richard MacCutchan27-Jan-18 20:56
mveRichard MacCutchan27-Jan-18 20:56 
QuestionCompiler does not see reference to control. Closed Pin
mo149226-Jan-18 5:45
mo149226-Jan-18 5:45 
QuestionAdding two numbers together? Pin
MallardsReach25-Jan-18 23:34
MallardsReach25-Jan-18 23:34 
AnswerRe: Adding two numbers together? Pin
Ralf Meier26-Jan-18 0:19
mveRalf Meier26-Jan-18 0:19 
SuggestionRe: Adding two numbers together? Pin
Richard Deeming26-Jan-18 2:40
mveRichard Deeming26-Jan-18 2:40 
GeneralRe: Adding two numbers together? Pin
Ralf Meier26-Jan-18 6:53
mveRalf Meier26-Jan-18 6:53 
GeneralRe: Adding two numbers together? Pin
MallardsReach26-Jan-18 5:57
MallardsReach26-Jan-18 5:57 
AnswerRe: Adding two numbers together? Pin
Dave Kreskowiak26-Jan-18 4:43
mveDave Kreskowiak26-Jan-18 4:43 
GeneralRe: Adding two numbers together? Pin
MallardsReach26-Jan-18 5:59
MallardsReach26-Jan-18 5:59 
GeneralRe: Adding two numbers together? Pin
MallardsReach26-Jan-18 6:37
MallardsReach26-Jan-18 6:37 
GeneralRe: Adding two numbers together? Pin
Eddy Vluggen26-Jan-18 8:04
professionalEddy Vluggen26-Jan-18 8:04 

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.