Click here to Skip to main content
15,905,071 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problems verifying if an object exist on entity framework Pin
Eddy Vluggen19-Nov-18 13:26
professionalEddy Vluggen19-Nov-18 13:26 
GeneralRe: Problems verifying if an object exist on entity framework Pin
Mycroft Holmes20-Nov-18 11:05
professionalMycroft Holmes20-Nov-18 11:05 
GeneralRe: Problems verifying if an object exist on entity framework Pin
Eddy Vluggen20-Nov-18 11:09
professionalEddy Vluggen20-Nov-18 11:09 
QuestionEntity framework 6 : When to call Savechanges ? Pin
desanti17-Nov-18 1:10
desanti17-Nov-18 1:10 
AnswerRe: Entity framework 6 : When to call Savechanges ? Pin
Eddy Vluggen17-Nov-18 1:20
professionalEddy Vluggen17-Nov-18 1:20 
GeneralRe: Entity framework 6 : When to call Savechanges ? Pin
desanti17-Nov-18 7:33
desanti17-Nov-18 7:33 
GeneralRe: Entity framework 6 : When to call Savechanges ? Pin
Eddy Vluggen17-Nov-18 12:08
professionalEddy Vluggen17-Nov-18 12:08 
AnswerRe: Entity framework 6 : When to call Savechanges ? Pin
Dave Kreskowiak17-Nov-18 5:02
mveDave Kreskowiak17-Nov-18 5:02 
As always, it depends on business rules.

Should all the records in the Excel sheet be treated individually? Should they be treated as one unit? What happens if you're app crashed or is otherwise interrupted during the write to the database? What do you track, if anything, to recover? Do you start over and rewrite the records you already wrote in the database? Do you try to resume from the last successfully written record?

You COULD save after every record. It'll slow things down but you'll get a verified write on each and every one.

What's the "best" number of records? It's impossible for anyone to say. Again, it depends on a ton of factors. There is no "one value" to rule them all.

You COULD save after the entire set is created. That will result in a long save operation that'll return a single error if there is a problem with any record in the operation.


It's impossible for anyone, other than yourself, to answer your question.

GeneralRe: Entity framework 6 : When to call Savechanges ? Pin
desanti17-Nov-18 7:41
desanti17-Nov-18 7:41 
AnswerRe: Entity framework 6 : When to call Savechanges ? Pin
Richard Deeming19-Nov-18 2:43
mveRichard Deeming19-Nov-18 2:43 
QuestionVb.net and Crystal Report Pin
Bj Molo15-Nov-18 1:38
Bj Molo15-Nov-18 1:38 
AnswerRe: Vb.net and Crystal Report Pin
Eddy Vluggen15-Nov-18 1:45
professionalEddy Vluggen15-Nov-18 1:45 
GeneralRe: Vb.net and Crystal Report Pin
Bj Molo15-Nov-18 1:52
Bj Molo15-Nov-18 1:52 
GeneralRe: Vb.net and Crystal Report Pin
Eddy Vluggen15-Nov-18 2:05
professionalEddy Vluggen15-Nov-18 2:05 
QuestionHow can we acheive using Datagridview in dotnet Pin
Member 476123413-Nov-18 19:28
Member 476123413-Nov-18 19:28 
AnswerRe: How can we acheive using Datagridview in dotnet Pin
Eddy Vluggen14-Nov-18 0:36
professionalEddy Vluggen14-Nov-18 0:36 
QuestionSorting rows as specific template Pin
User 1367511413-Nov-18 4:02
User 1367511413-Nov-18 4:02 
AnswerRe: Sorting rows as specific template Pin
Richard MacCutchan13-Nov-18 5:11
mveRichard MacCutchan13-Nov-18 5:11 
QuestionVB6 AND LIST SQLSERVER Pin
sal2112-Nov-18 20:53
sal2112-Nov-18 20:53 
AnswerRe: VB6 AND LIST SQLSERVER Pin
Eddy Vluggen14-Nov-18 0:32
professionalEddy Vluggen14-Nov-18 0:32 
QuestionProblem with Xml Path Pin
mo149211-Nov-18 13:48
mo149211-Nov-18 13:48 
QuestionRe: Problem with Xml Path Pin
Richard MacCutchan11-Nov-18 22:08
mveRichard MacCutchan11-Nov-18 22:08 
AnswerRe: Problem with Xml Path; Closed here Pin
mo149211-Nov-18 23:46
mo149211-Nov-18 23:46 
QuestionAutoincrement with strings Pin
allukasan7-Nov-18 22:08
allukasan7-Nov-18 22:08 
AnswerRe: Autoincrement with strings Pin
Richard MacCutchan7-Nov-18 22:22
mveRichard MacCutchan7-Nov-18 22: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.