Friends,
What is precise way in EF to achieve below scenario?
I have SP - [UpdateUnitStatement] @BatchRunId varchar(10)- The execution of this statement takes some time.
So below code using EF, does not wait till SP execution completed and moves to next statement.
entity. UpdateUnitStatement (BatchRunId);
//Next Statement
Alternatively, I achived this using standard SQLCommand.ExecuteNonQuery
int result = SQLCommand.ExecuteNonQuery("Exec UpdateUnitStatement @BatchRunId = " + BatchRunIds, null);

Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Aug 3, 2018, 10:49 AM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 27, 2018, 10:04 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jul 27, 2018, 10:58 PM EDT