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
Post a Comment