Class UpdateDataOperation
- Namespace
- Microsoft.EntityFrameworkCore.Migrations.Operations
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
A MigrationOperation for updating seed data in an existing table.
public class UpdateDataOperation : MigrationOperation, ITableMigrationOperation
- Inheritance
-
UpdateDataOperation
- Implements
- Inherited Members
Constructors
UpdateDataOperation()
public UpdateDataOperation()
Properties
ColumnTypes
A list of store types for the columns in which data will be updated.
public virtual string[] ColumnTypes { get; set; }
Property Value
- string[]
Columns
A list of column names that represent the columns that contain data to be updated.
public virtual string[] Columns { get; set; }
Property Value
- string[]
KeyColumnTypes
A list of store types for the columns that will be used to identify the rows that should be updated.
public virtual string[] KeyColumnTypes { get; set; }
Property Value
- string[]
KeyColumns
A list of column names that represent the columns that will be used to identify the rows that should be updated.
public virtual string[] KeyColumns { get; set; }
Property Value
- string[]
KeyValues
The rows to be updated, represented as a list of key value arrays where each value in the array corresponds to a column in the KeyColumns property.
public virtual object[,] KeyValues { get; set; }
Property Value
- object[,]
Schema
The schema that contains the table, or null if the default schema should be used.
public virtual string Schema { get; set; }
Property Value
Table
The name of the table in which data will be updated.
public virtual string Table { get; set; }
Property Value
Values
The data to be updated, represented as a list of value arrays where each value in the array corresponds to a column in the Columns property.
public virtual object[,] Values { get; set; }
Property Value
- object[,]
Methods
GenerateModificationCommands(IModel)
Generates the commands that correspond to this operation.
[Obsolete]
public virtual IEnumerable<ModificationCommand> GenerateModificationCommands(IModel model)
Parameters
model
IModel
Returns
- IEnumerable<ModificationCommand>
The commands that correspond to this operation.