View Source
Class MigrationExpressionBase
Provides a base class for migration expressions.
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class MigrationExpressionBase : IMigrationExpression
Constructors
View Source
MigrationExpressionBase(IMigrationContext)
Declaration
protected MigrationExpressionBase(IMigrationContext context)
Parameters
Properties
View Source
Context
Declaration
protected IMigrationContext Context { get; }
Property Value
View Source
Database
Declaration
protected IUmbracoDatabase Database { get; }
Property Value
View Source
DatabaseType
Declaration
public DatabaseType DatabaseType { get; }
Property Value
Type |
Description |
DatabaseType |
|
View Source
Expressions
Declaration
public List<IMigrationExpression> Expressions { get; }
Property Value
View Source
Logger
Declaration
protected ILogger Logger { get; }
Property Value
View Source
SqlSyntax
Declaration
protected ISqlSyntaxProvider SqlSyntax { get; }
Property Value
Methods
View Source
AppendStatementSeparator(StringBuilder)
Declaration
protected void AppendStatementSeparator(StringBuilder stmtBuilder)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
stmtBuilder |
|
View Source
Execute()
Declaration
public virtual void Execute()
View Source
Execute(Nullable<Sql<ISqlContext>>)
Declaration
protected void Execute(Sql<ISqlContext>? sql)
Parameters
Type |
Name |
Description |
System.Nullable<Sql<ISqlContext>> |
sql |
|
View Source
GetQuotedValue(Object)
Declaration
protected string GetQuotedValue(object val)
Parameters
Type |
Name |
Description |
System.Object |
val |
|
Returns
Type |
Description |
System.String |
|
View Source
GetSql()
Declaration
protected virtual string GetSql()
Returns
Type |
Description |
System.String |
|