Does "IsolationLevel.ReadUncommitted" in EF read from CACHE?
i have a transaction scope with IsolationLevel.ReadUncommitted
Class Orders{
public int Id {get();set();}
public int OrderType {get();set();}
}
While(true){
var transactionOptions = new TransactionOptions
{
IsolationLevel = IsolationLevel.ReadUncommitted
};
using(TransactionScope(TransactionScopeOption.Required, transactionOptions))
{
var temp = context.Orders.Include(e => e.Customer).SingleOrDefault(e => e.Id == 1);
}
}
Suppose, initially, i have one order with order type "1", temp gets initialised to that one row. If i were to update the orderType of my order to "2" using an Update query in SSMS (MSSQL), the order type of the object pulled from context is still "1" although in DB its "2". Is this because of Read UnCommitted?