共用方式為


MigrationBuilder.DeleteData 方法

定義

多載

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)

來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
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)

來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
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)

來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
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)

來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
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)

來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
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)

來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
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)

來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
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)

來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
MigrationBuilder.cs
來源:
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 預設架構。

傳回

允許將批註加入至作業的產生器。

備註

如需詳細資訊和範例 ,請參閱資料庫移轉

適用於