Class UpdateDataExpression
Expression to update data
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class UpdateDataExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated, ISchemaExpression, IValidatableObject
Properties
| Edit this page View SourceIsAllRows
Gets or sets a value indicating whether all rows should be updated
Declaration
public bool IsAllRows { get; set; }
Property Value
Type | Description |
---|---|
bool |
SchemaName
Gets or sets the schema name
Declaration
public string SchemaName { get; set; }
Property Value
Type | Description |
---|---|
string |
Set
Gets or sets the values to be set
Declaration
public List<KeyValuePair<string, object>> Set { get; set; }
Property Value
Type | Description |
---|---|
List<KeyValuePair<string, object>> |
TableName
Gets or sets the table name
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "TableNameCannotBeNullOrEmpty")]
public string TableName { get; set; }
Property Value
Type | Description |
---|---|
string |
Where
Gets or sets the condition column/value pairs
Declaration
public List<KeyValuePair<string, object>> Where { get; set; }
Property Value
Type | Description |
---|---|
List<KeyValuePair<string, object>> |
Methods
| Edit this page View SourceExecuteWith(IMigrationProcessor)
Execute the expression with the given processor
Declaration
public override void ExecuteWith(IMigrationProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
IMigrationProcessor | processor | The processor to execute the expression with |
Overrides
| Edit this page View SourceValidate(ValidationContext)
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
ValidationContext | validationContext |
Returns
Type | Description |
---|---|
IEnumerable<ValidationResult> |