DbUpdateConcurrencyException Sınıf

Tanım

Bir varlık için SaveChanges'in veritabanı güncelleştirmesi ile sonuçlanacağı ancak aslında veritabanındaki hiçbir satırın etkilenmediği beklenirken tarafından özel durum oluştu DbContext . Bu durum genellikle veritabanının eş zamanlı olarak güncelleştirildiğini ve eşleşmesi beklenen bir eşzamanlılık belirtecinin aslında eşleşmediğini gösterir. Bu özel durumun başvurduğunu durum girdilerinin güvenlik nedeniyle serileştirilmediğini ve serileştirmeden sonra durum girişlerine erişimlerin null döndüreceğini unutmayın.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbUpdateConcurrencyException : System.Data.Entity.Infrastructure.DbUpdateException
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
public class DbUpdateConcurrencyException : System.Data.Entity.Infrastructure.DbUpdateException
type DbUpdateConcurrencyException = class
    inherit DbUpdateException
Public Class DbUpdateConcurrencyException
Inherits DbUpdateException
Devralma
DbUpdateConcurrencyException
Öznitelikler

Oluşturucular

DbUpdateConcurrencyException()

DbUpdateException sınıfının yeni bir örneğini başlatır.

DbUpdateConcurrencyException(String, Exception)

DbUpdateException sınıfının yeni bir örneğini başlatır.

DbUpdateConcurrencyException(String)

DbUpdateException sınıfının yeni bir örneğini başlatır.

Özellikler

Entries

Veritabanına kaydedilemeyen varlıkları temsil eden nesneleri alır DbEntityEntry .

(Devralındığı yer: DbUpdateException)

Şunlara uygulanır