To avoid what you've just explained you can begin a transaction on the context. Now give the transaction which was created to a sql command. In this case both the queries are executed on the same transaction without fear that a transaction was created behinde the scenes.
To avoid what you've just explained you can begin a transaction on the context. Now give the transaction which was created to a sql command. In this case both the queries are executed on the same transaction without fear that a transaction was created behinde the scenes.