I would like to access an entity (called Document) which is mapped to a table (called Document) using Entity Framework 1.0 but it is very important that this table is not locked when the data is read.
There are articles both online, and on stackoverflow that suggest using transaction scope for this. But I don't initially feel comfortable creating a transaction for a read.
Therefore my question is:
- How can I force entity framework to use the nolock hint when creating the SQL statement for this entity, without pointing at a stored procedure, when the query is directed at SQL Server 2008?
- If this is not possible are there any real issues with using a transaction scope for a read, or am I just being too cautious?