What is the default transaction isolation level in Entity Framework when I issue “SaveChanges()”?
问题 What is the default transaction isolation level in Entity Framework when I issue “SaveChanges()”? I can not find it anywhere. Shall it be "Serializable"? 回答1: SaveChanges uses implementation of DbTransaction for current store provider. It means that default transaction isolation level is set to default value for the database server. In SQL Server it is READ COMMITTED . If you want to change isolation level you can use TransactionScope . You can also override SaveChanges in your derived