Interface IIfDatabaseExpressionRoot
Defines fluent expressions that can be conditionally executed
Namespace: FluentMigrator.Builders.IfDatabase
Assembly: FluentMigrator.Abstractions.dll
Syntax
public interface IIfDatabaseExpressionRoot
Properties
Alter
Creates an ALTER expression
Declaration
IAlterExpressionRoot Alter { get; }
Property Value
| Type | Description |
|---|---|
| IAlterExpressionRoot |
Create
Creates CREATE expression
Declaration
ICreateExpressionRoot Create { get; }
Property Value
| Type | Description |
|---|---|
| ICreateExpressionRoot |
Delete
Creates a DELETE expression
Declaration
IDeleteExpressionRoot Delete { get; }
Property Value
| Type | Description |
|---|---|
| IDeleteExpressionRoot |
Execute
Execute some SQL
Declaration
IExecuteExpressionRoot Execute { get; }
Property Value
| Type | Description |
|---|---|
| IExecuteExpressionRoot |
Insert
Inserts data into a table
Declaration
IInsertExpressionRoot Insert { get; }
Property Value
| Type | Description |
|---|---|
| IInsertExpressionRoot |
Rename
Renames a database object
Declaration
IRenameExpressionRoot Rename { get; }
Property Value
| Type | Description |
|---|---|
| IRenameExpressionRoot |
Schema
Check if a database object exists
Declaration
ISchemaExpressionRoot Schema { get; }
Property Value
| Type | Description |
|---|---|
| ISchemaExpressionRoot |
Update
Updates data in a table
Declaration
IUpdateExpressionRoot Update { get; }
Property Value
| Type | Description |
|---|---|
| IUpdateExpressionRoot |
Methods
Delegate(Action)
Invokes a delegate that can be used to create database specific expressions
Declaration
void Delegate(Action delegation)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | delegation | The delegate to call if the database type matches |