You can do this based on a DataContext / unit of work as follows:
using (var con = new SqlConnection(constr)) { con.Open(); using (var tran = new con.BeginTransaction(IsolationLevel.ReadUncommitted)) { using (var db = new MyDataContext(con)) {
Of course, you can abstract the creation, commit, and deletion of the connection and transaction, but this example will work.
Note that this will not set the isolation level globally, only for LINQ statements that execute in the context of this particular DataContext class.
Steven
source share