Search Results for

    Show / Hide Table of Contents

    Class UpdateDataExpression

    Expression to update data

    Inheritance
    object
    MigrationExpressionBase
    UpdateDataExpression
    Implements
    IMigrationExpression
    ICanBeValidated
    ISchemaExpression
    IValidatableObject
    Inherited Members
    MigrationExpressionBase.CollectValidationErrors(ICollection<string>)
    MigrationExpressionBase.Reverse()
    MigrationExpressionBase.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Expressions
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    public class UpdateDataExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated, ISchemaExpression, IValidatableObject

    Properties

    | Edit this page View Source

    IsAllRows

    Gets or sets a value indicating whether all rows should be updated

    Declaration
    public bool IsAllRows { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    SchemaName

    Gets or sets the schema name

    Declaration
    public string SchemaName { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    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>>
    | Edit this page View Source

    TableName

    Gets or sets the table name

    Declaration
    [Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "TableNameCannotBeNullOrEmpty")]
    public string TableName { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    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 Source

    ExecuteWith(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
    MigrationExpressionBase.ExecuteWith(IMigrationProcessor)
    | Edit this page View Source

    Validate(ValidationContext)

    Determines whether the specified object is valid.

    Declaration
    public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    ValidationContext validationContext

    The validation context.

    Returns
    Type Description
    IEnumerable<ValidationResult>

    A collection that holds failed-validation information.

    Implements

    IMigrationExpression
    ICanBeValidated
    ISchemaExpression
    IValidatableObject

    Extension Methods

    LegacyValidationExtensions.CollectErrors(ICanBeValidated, ICollection<string>, IServiceProvider)
    LegacyValidationExtensions.TryCollectResults(ICanBeValidated, ICollection<ValidationResult>, IServiceProvider, IDictionary<object, object>)
    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.