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