Aracılığıyla paylaş


DbUpdateException Sınıf

Tanım

Veritabanındaki değişikliklerin kaydedilmesi başarısız olduğunda tarafından DbContext özel durum oluştu. Bu özel durum tarafından başvuruda bulunülen 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 DbUpdateException : System.Data.DataException
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
public class DbUpdateException : System.Data.DataException
type DbUpdateException = class
    inherit DataException
Public Class DbUpdateException
Inherits DataException
Devralma
DbUpdateException
Türetilmiş
Öznitelikler

Oluşturucular

DbUpdateException()

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

DbUpdateException(String)

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

DbUpdateException(String, Exception)

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 .

Şunlara uygulanır