I am using EF for access MS SQL data with help LINQ. How can I get current isolation level ? For example this code:
var level =
Database.Connection.UnderlyingTransaction.IsolationLevel.ToString();
give me error - System.NullReferenceException: Object reference not set to an instance of an object.
As I understand - UnderlyingTransaction is null because I don't use any transactions in my LINQ code.