문제

Here what decompiler shows:

public enum IsolationLevel
{
  Unspecified = -1,
  Chaos = 16,
  ReadUncommitted = 256,
  ReadCommitted = 4096,
  RepeatableRead = 65536,
  Serializable = 1048576,
  Snapshot = 16777216,
}

But Serializable locks data thus providing more guarantees for concurrency correctness than Snapshot does. So what is the reason for value of Snapshot is greater?

도움이 되었습니까?

해결책

Numerically greater has no particular bearing here on "level of isolation". Each item simply represents a different type of isolation. For what that means you must refer to the documentation. These are actually just bit-wise flags at 4-bit spacings. No particular meaning is intended by the values used, other than internal implementation details.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top