Class DeleteDataBuilder
Provides a builder for creating delete data migration expressions.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Data
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteDataBuilder : ExpressionBuilderBase<DeleteDataExpression>, IDeleteDataBuilder, IFluentBuilder, IExecutableBuilder
Constructors
View SourceDeleteDataBuilder(DeleteDataExpression)
Initializes a new instance of the DeleteDataBuilder class.
Declaration
public DeleteDataBuilder(DeleteDataExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteDataExpression | expression | The DeleteDataExpression that defines the data to be deleted in the migration. |
Methods
View SourceAllRows()
Specifies that all rows in the target table will be deleted.
Declaration
public IExecutableBuilder AllRows()
Returns
| Type | Description |
|---|---|
| IExecutableBuilder | An IExecutableBuilder to execute the delete operation. |
Do()
Executes.
Declaration
public void Do()
IsNull(string)
Specifies that rows with a specified column being null must be deleted.
Declaration
public IExecutableBuilder IsNull(string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | columnName |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder |
Row(object)
Specifies a row to be deleted.
Declaration
public IDeleteDataBuilder Row(object dataAsAnonymousType)
Parameters
| Type | Name | Description |
|---|---|---|
| object | dataAsAnonymousType |
Returns
| Type | Description |
|---|---|
| IDeleteDataBuilder |