Share via


DbUpdateException 构造函数

定义

重载

DbUpdateException()

初始化 DbUpdateException 类的新实例。

DbUpdateException(String)

初始化 DbUpdateException 类的新实例。

DbUpdateException(SerializationInfo, StreamingContext)
已过时.

从序列化形式 DbUpdateException 初始化 类的新实例。

DbUpdateException(String, IReadOnlyList<EntityEntry>)

初始化 DbUpdateException 类的新实例。

DbUpdateException(String, IReadOnlyList<IUpdateEntry>)

初始化 DbUpdateException 类的新实例。

DbUpdateException(String, Exception)

初始化 DbUpdateException 类的新实例。

DbUpdateException(String, Exception, IReadOnlyList<EntityEntry>)

初始化 DbUpdateException 类的新实例。

DbUpdateException(String, Exception, IReadOnlyList<IUpdateEntry>)

初始化 DbUpdateException 类的新实例。

DbUpdateException()

初始化 DbUpdateException 类的新实例。

public DbUpdateException ();
Public Sub New ()

适用于

DbUpdateException(String)

初始化 DbUpdateException 类的新实例。

public DbUpdateException (string message);
new Microsoft.EntityFrameworkCore.DbUpdateException : string -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String)

参数

message
String

解释异常原因的错误消息。

适用于

DbUpdateException(SerializationInfo, StreamingContext)

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

从序列化形式 DbUpdateException 初始化 类的新实例。

public DbUpdateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
public DbUpdateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EntityFrameworkCore.DbUpdateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.DbUpdateException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")>]
new Microsoft.EntityFrameworkCore.DbUpdateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

序列化信息。

context
StreamingContext

正在使用的流式处理上下文。

属性

适用于

DbUpdateException(String, IReadOnlyList<EntityEntry>)

初始化 DbUpdateException 类的新实例。

public DbUpdateException (string message, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry> -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, entries As IReadOnlyList(Of EntityEntry))

参数

message
String

解释异常原因的错误消息。

entries
IReadOnlyList<EntityEntry>

错误中涉及的条目。

适用于

DbUpdateException(String, IReadOnlyList<IUpdateEntry>)

初始化 DbUpdateException 类的新实例。

public DbUpdateException (string message, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, entries As IReadOnlyList(Of IUpdateEntry))

参数

message
String

解释异常原因的错误消息。

entries
IReadOnlyList<IUpdateEntry>

错误中涉及的条目。

适用于

DbUpdateException(String, Exception)

初始化 DbUpdateException 类的新实例。

public DbUpdateException (string message, Exception innerException);
public DbUpdateException (string message, Exception? innerException);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * Exception -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, innerException As Exception)

参数

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的异常。

适用于

DbUpdateException(String, Exception, IReadOnlyList<EntityEntry>)

初始化 DbUpdateException 类的新实例。

public DbUpdateException (string message, Exception? innerException, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * Exception * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry> -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, innerException As Exception, entries As IReadOnlyList(Of EntityEntry))

参数

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的异常。

entries
IReadOnlyList<EntityEntry>

错误中涉及的条目。

适用于

DbUpdateException(String, Exception, IReadOnlyList<IUpdateEntry>)

初始化 DbUpdateException 类的新实例。

public DbUpdateException (string message, Exception innerException, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries);
public DbUpdateException (string message, Exception? innerException, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * Exception * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, innerException As Exception, entries As IReadOnlyList(Of IUpdateEntry))

参数

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的异常。

entries
IReadOnlyList<IUpdateEntry>

错误中涉及的条目。

适用于