Class InsertDataExpression
Expression to insert data
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class InsertDataExpression : IMigrationExpression, ICanBeValidated, ISupportAdditionalFeatures, ISchemaExpression
Properties
| Edit this page View SourceAdditionalFeatures
Gets the dictionary to store the values for additional features
Declaration
public IDictionary<string, object> AdditionalFeatures { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |
Rows
Gets the rows to be inserted
Declaration
public List<InsertionDataDefinition> Rows { get; }
Property Value
Type | Description |
---|---|
List<InsertionDataDefinition> |
SchemaName
Gets or sets the schema name
Declaration
public string SchemaName { get; set; }
Property Value
Type | Description |
---|---|
string |
TableName
Gets or sets the table name
Declaration
[Required]
public string TableName { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceCollectValidationErrors(ICollection<string>)
Collect validation errors
Declaration
[Obsolete("Use the System.ComponentModel.DataAnnotations.Validator instead")]
public void CollectValidationErrors(ICollection<string> errors)
Parameters
Type | Name | Description |
---|---|---|
ICollection<string> | errors | The collection of error messages |
ExecuteWith(IMigrationProcessor)
Execute the expression with the given processor
Declaration
public void ExecuteWith(IMigrationProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
IMigrationProcessor | processor | The processor to execute the expression with |
Reverse()
Create a reversing migration expression
Declaration
public IMigrationExpression Reverse()
Returns
Type | Description |
---|---|
IMigrationExpression | The reversing migration expression |