What is the default transaction isolation level in Entity Framework when I issue “SaveChanges()”?

前端 未结 3 1879
长情又很酷
长情又很酷 2020-12-05 09:57

What is the default transaction isolation level in Entity Framework when I issue “SaveChanges()”? I can not find it anywhere. Shall it be \"Serializable\"?

3条回答
  •  萌比男神i
    2020-12-05 10:04

    As of EF 6, the default isolation level for a SQL Server transaction is READ COMMITTED. The reference is here: Entity Framework Working with Transactions (EF6 Onwards)

    For other providers (same reference) "the isolation level of the transaction is whatever isolation level the database provider considers its default setting". So you will have to look at the documentation of that provider.

提交回复
热议问题