Search Results for

    Show / Hide Table of Contents

    Class DeleteDataExpression

    Expression to delete the data

    Inheritance
    object
    DeleteDataExpression
    Implements
    IMigrationExpression
    ICanBeValidated
    ISchemaExpression
    Inherited Members
    object.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 DeleteDataExpression : IMigrationExpression, ICanBeValidated, ISchemaExpression

    Properties

    | Edit this page View Source

    IsAllRows

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

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

    Rows

    Gets the list of row definitions

    Declaration
    public List<DeletionDataDefinition> Rows { get; }
    Property Value
    Type Description
    List<DeletionDataDefinition>
    | Edit this page View Source

    SchemaName

    Gets or sets the schema name

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

    TableName

    Gets or sets the table name

    Declaration
    [Required]
    public string TableName { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    CollectValidationErrors(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

    | Edit this page View Source

    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

    | Edit this page View Source

    Reverse()

    Create a reversing migration expression

    Declaration
    public IMigrationExpression Reverse()
    Returns
    Type Description
    IMigrationExpression

    The reversing migration expression

    Implements

    IMigrationExpression
    ICanBeValidated
    ISchemaExpression

    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.