Set Isolation level to DIRTY READ in Entity Framework with Informix -


is there way set isolation levels in entity framework 5 informix database or lock mode wait?

i have tried set isolation using sql query, @ time of dbcontext object creation.

var datacontext = new databasenamecontext();   datacontext.database.executesqlcommand("set isolation dirty read"); 

but seems not working. still getting lock exception:

ibm.data.db2.db2exception (0x80004005): error [ix000] [ibm][ids/unix64] not physical-order read fetch next row. (-107 isam error: record locked. 

i tried using transactionscope system.transactions.isolationlevel.readuncommitted, throwing exception:

ibm.data.db2.db2exception (0x80004005): error [58005] [ibm][ids/unix64] sql0998n error occurred during transaction or heuristic processing. reason code = "16". subcode = "2-8004d026". 

can explain what's going wrong , how fix it?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -