BabellDev
BabellDev
In my sample code that change to "FOO" would never be committed to the physical database because the transaction was never committed, so the cached version would be out of...
The name "FOO" will not be in the cache? Note that this change would only be written to the database if the transaction is successfully committed, but because DoSomeWork() throws...
Inside the transaction when I call `dbContext.SomeEntities.First() `it will return the entity with name "FOO", even though it is not physically committed to the database yet. It will only get...
To demonstrate the issue, assume this.context.SomeEntities.First() returns an entity with name "BAR" ``` using (var txn = this.context.Database.BeginTransaction()) { // query, modify, and save var temp = this.context.SomeEntities.First(); temp.Name =...
To work around this issue in our project, we simply suppress caching when there is an open transaction. For us, missing out on some caching is less severe than having...