MigrationBuilder.DeleteData 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DeleteData(String, String[], String[], Object[,], String) |
生成 , DeleteDataOperation 以使用复合 (多列) 键从表中删除多行种子数据。 |
DeleteData(String, String[], String[], Object[], String) |
生成 , DeleteDataOperation 以使用复合 (多列) 键从表中删除单行种子数据。 |
DeleteData(String, String, String, Object, String) |
生成 以 DeleteDataOperation 删除单行种子数据。 |
DeleteData(String, String, String, Object[], String) |
生成以 DeleteDataOperation 删除多行种子数据。 |
DeleteData(String, String[], Object[,], String) |
生成 , DeleteDataOperation 以使用复合 (多列) 键从表中删除多行种子数据。 |
DeleteData(String, String[], Object[], String) |
生成 , DeleteDataOperation 以使用复合 (多列) 键从表中删除单行种子数据。 |
DeleteData(String, String, Object[], String) |
生成以 DeleteDataOperation 删除多行种子数据。 |
DeleteData(String, String, Object, String) |
生成 以 DeleteDataOperation 删除单行种子数据。 |
DeleteData(String, String[], String[], Object[,], String)
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
生成 , DeleteDataOperation 以使用复合 (多列) 键从表中删除多行种子数据。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string[] keyColumns, string[] keyColumnTypes, object[,] keyValues, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string[] keyColumns, string[] keyColumnTypes, object?[,] keyValues, string? schema = default);
abstract member DeleteData : string * string[] * string[] * obj[,] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
override this.DeleteData : string * string[] * string[] * obj[,] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
Public Overridable Function DeleteData (table As String, keyColumns As String(), keyColumnTypes As String(), keyValues As Object(,), Optional schema As String = Nothing) As OperationBuilder(Of DeleteDataOperation)
参数
- table
- String
要从中删除数据的表。
- keyColumns
- String[]
用于选择要删除的行的键列的名称。
- keyColumnTypes
- String[]
将用于标识应删除的行的列的存储类型。
- keyValues
- Object[,]
要删除的行的键值,其中外部数组的每个元素表示一行,每个内部数组包含“keyColumns”中每个键列的值。
- schema
- String
包含表的架构,或使用 null
默认架构。
返回
允许将批注添加到操作的生成器。
注解
有关详细信息和示例 ,请参阅数据库迁移 。
适用于
DeleteData(String, String[], String[], Object[], String)
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
生成 , DeleteDataOperation 以使用复合 (多列) 键从表中删除单行种子数据。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string[] keyColumns, string[] keyColumnTypes, object[] keyValues, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string[] keyColumns, string[] keyColumnTypes, object?[] keyValues, string? schema = default);
abstract member DeleteData : string * string[] * string[] * obj[] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
override this.DeleteData : string * string[] * string[] * obj[] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
Public Overridable Function DeleteData (table As String, keyColumns As String(), keyColumnTypes As String(), keyValues As Object(), Optional schema As String = Nothing) As OperationBuilder(Of DeleteDataOperation)
参数
- table
- String
要从中删除数据的表。
- keyColumns
- String[]
用于选择要删除的行的键列的名称。
- keyColumnTypes
- String[]
将用于标识应删除的行的列的存储类型。
- keyValues
- Object[]
要删除的行的键值,“keyColumns”中每列对应一个值。
- schema
- String
包含表的架构,或使用 null
默认架构。
返回
允许将批注添加到操作的生成器。
注解
有关详细信息和示例 ,请参阅数据库迁移 。
适用于
DeleteData(String, String, String, Object, String)
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
生成 以 DeleteDataOperation 删除单行种子数据。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string keyColumn, string keyColumnType, object keyValue, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string keyColumn, string keyColumnType, object? keyValue, string? schema = default);
abstract member DeleteData : string * string * string * obj * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
override this.DeleteData : string * string * string * obj * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
Public Overridable Function DeleteData (table As String, keyColumn As String, keyColumnType As String, keyValue As Object, Optional schema As String = Nothing) As OperationBuilder(Of DeleteDataOperation)
参数
- table
- String
要从中删除数据的表。
- keyColumn
- String
用于选择要删除的行的键列的名称。
- keyColumnType
- String
将用于标识应删除的行的列的存储类型。
- keyValue
- Object
要删除的行的键值。
- schema
- String
包含表的架构,或使用 null
默认架构。
返回
允许将批注添加到操作的生成器。
注解
有关详细信息和示例 ,请参阅数据库迁移 。
适用于
DeleteData(String, String, String, Object[], String)
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
生成以 DeleteDataOperation 删除多行种子数据。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string keyColumn, string keyColumnType, object[] keyValues, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string keyColumn, string keyColumnType, object[] keyValues, string? schema = default);
abstract member DeleteData : string * string * string * obj[] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
override this.DeleteData : string * string * string * obj[] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
Public Overridable Function DeleteData (table As String, keyColumn As String, keyColumnType As String, keyValues As Object(), Optional schema As String = Nothing) As OperationBuilder(Of DeleteDataOperation)
参数
- table
- String
要从中删除数据的表。
- keyColumn
- String
用于选择要删除的行的键列的名称。
- keyColumnType
- String
将用于标识应删除的行的列的存储类型。
- keyValues
- Object[]
要删除的行的键值,每行一个值。
- schema
- String
包含表的架构,或使用 null
默认架构。
返回
允许将批注添加到操作的生成器。
注解
有关详细信息和示例 ,请参阅数据库迁移 。
适用于
DeleteData(String, String[], Object[,], String)
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
生成 , DeleteDataOperation 以使用复合 (多列) 键从表中删除多行种子数据。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string[] keyColumns, object[,] keyValues, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string[] keyColumns, object?[,] keyValues, string? schema = default);
abstract member DeleteData : string * string[] * obj[,] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
override this.DeleteData : string * string[] * obj[,] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
Public Overridable Function DeleteData (table As String, keyColumns As String(), keyValues As Object(,), Optional schema As String = Nothing) As OperationBuilder(Of DeleteDataOperation)
参数
- table
- String
要从中删除数据的表。
- keyColumns
- String[]
用于选择要删除的行的键列的名称。
- keyValues
- Object[,]
要删除的行的键值,其中外部数组的每个元素表示一行,每个内部数组包含“keyColumns”中每个键列的值。
- schema
- String
包含表的架构,或使用 null
默认架构。
返回
允许将批注添加到操作的生成器。
注解
有关详细信息和示例 ,请参阅数据库迁移 。
适用于
DeleteData(String, String[], Object[], String)
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
生成 , DeleteDataOperation 以使用复合 (多列) 键从表中删除单行种子数据。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string[] keyColumns, object[] keyValues, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string[] keyColumns, object?[] keyValues, string? schema = default);
abstract member DeleteData : string * string[] * obj[] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
override this.DeleteData : string * string[] * obj[] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
Public Overridable Function DeleteData (table As String, keyColumns As String(), keyValues As Object(), Optional schema As String = Nothing) As OperationBuilder(Of DeleteDataOperation)
参数
- table
- String
要从中删除数据的表。
- keyColumns
- String[]
用于选择要删除的行的键列的名称。
- keyValues
- Object[]
要删除的行的键值,“keyColumns”中每列对应一个值。
- schema
- String
包含表的架构,或使用 null
默认架构。
返回
允许将批注添加到操作的生成器。
注解
有关详细信息和示例 ,请参阅数据库迁移 。
适用于
DeleteData(String, String, Object[], String)
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
生成以 DeleteDataOperation 删除多行种子数据。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string keyColumn, object[] keyValues, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string keyColumn, object[] keyValues, string? schema = default);
abstract member DeleteData : string * string * obj[] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
override this.DeleteData : string * string * obj[] * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
Public Overridable Function DeleteData (table As String, keyColumn As String, keyValues As Object(), Optional schema As String = Nothing) As OperationBuilder(Of DeleteDataOperation)
参数
- table
- String
要从中删除数据的表。
- keyColumn
- String
用于选择要删除的行的键列的名称。
- keyValues
- Object[]
要删除的行的键值,每行一个值。
- schema
- String
包含表的架构,或使用 null
默认架构。
返回
允许将批注添加到操作的生成器。
注解
有关详细信息和示例 ,请参阅数据库迁移 。
适用于
DeleteData(String, String, Object, String)
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
- Source:
- MigrationBuilder.cs
生成 以 DeleteDataOperation 删除单行种子数据。
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string keyColumn, object keyValue, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation> DeleteData (string table, string keyColumn, object? keyValue, string? schema = default);
abstract member DeleteData : string * string * obj * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
override this.DeleteData : string * string * obj * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation>
Public Overridable Function DeleteData (table As String, keyColumn As String, keyValue As Object, Optional schema As String = Nothing) As OperationBuilder(Of DeleteDataOperation)
参数
- table
- String
要从中删除数据的表。
- keyColumn
- String
用于选择要删除的行的键列的名称。
- keyValue
- Object
要删除的行的键值。
- schema
- String
包含表的架构,或使用 null
默认架构。
返回
允许将批注添加到操作的生成器。
注解
有关详细信息和示例 ,请参阅数据库迁移 。