本文整理汇总了C#中FluentMigrator.Expressions.DeleteTableExpression类的典型用法代码示例。如果您正苦于以下问题:C# DeleteTableExpression类的具体用法?C# DeleteTableExpression怎么用?C# DeleteTableExpression使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeleteTableExpression类属于FluentMigrator.Expressions命名空间,在下文中一共展示了DeleteTableExpression类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Process
public virtual void Process(DeleteTableExpression expression)
{
Process(Generator.Generate(expression));
}
示例2: Generate
public abstract string Generate(DeleteTableExpression expression);
示例3: Truncate
public void Truncate(DeleteTableExpression expression)
{
expression.TableName = Truncate(expression.TableName);
}
示例4: RemoveVersionTable
public void RemoveVersionTable()
{
var expression = new DeleteTableExpression {TableName = VersionInfo.TABLE_NAME};
expression.ExecuteWith(_migrationProcessor);
}
示例5: CanDeleteTable
public void CanDeleteTable()
{
DeleteTableExpression expression = new DeleteTableExpression { TableName = table };
string sql = generator.Generate(expression);
sql.ShouldBe(string.Format("DROP TABLE [{0}]", table));
}
示例6: Generate
public override string Generate(DeleteTableExpression expression)
{
return String.Format("DROP TABLE {0}", expression.TableName);
}
示例7: Generate
public override string Generate(DeleteTableExpression expression)
{
return String.Format(DropTable, Quoter.QuoteTableName(expression.TableName));
}
示例8: RemoveVersionTable
public void RemoveVersionTable()
{
var expression = new DeleteTableExpression {TableName = VersionTableMetaData.TableName, SchemaName = VersionTableMetaData.SchemaName};
expression.ExecuteWith( Processor );
if (!string.IsNullOrEmpty(VersionTableMetaData.SchemaName))
{
var schemaExpression = new DeleteSchemaExpression {SchemaName = VersionTableMetaData.SchemaName};
schemaExpression.ExecuteWith(Processor);
}
}
示例9: ErrorIsNotReturnedWhenTableNameIsNotNullEmptyString
public void ErrorIsNotReturnedWhenTableNameIsNotNullEmptyString()
{
var expression = new DeleteTableExpression { TableName = "Bacon" };
var errors = ValidationHelper.CollectErrors(expression);
errors.ShouldNotContain(ErrorMessages.TableNameCannotBeNullOrEmpty);
}
示例10: Generate
public override string Generate(DeleteTableExpression expression)
{
return String.Format("DROP TABLE {0}[{1}]", FormatSchema(expression.SchemaName), expression.TableName);
}
示例11: Generate
public override string Generate(DeleteTableExpression expression)
{
return FormatExpression("DROP TABLE `{0}`", expression.TableName);
}
示例12: Generate
public override string Generate(DeleteTableExpression expression)
{
return string.Format("DROP TABLE {0}", base.Generate(expression));
}
示例13: Generate
public override string Generate(DeleteTableExpression expression)
{
return String.Format("DROP TABLE {0}.{1}", FormatSchema(expression.SchemaName), FormatIdentifier(expression.TableName));
}
示例14: CanDeleteTable
public void CanDeleteTable()
{
var expression = new DeleteTableExpression { TableName = table };
ApplyDefaultConventions(expression);
var sql = generator.Generate(expression);
sql.ShouldBe(string.Format("DROP TABLE [{0}]", table));
}
示例15: Generate
public override string Generate(DeleteTableExpression expression)
{
return String.Format("DROP TABLE {0}.{1}", Quoter.QuoteSchemaName(expression.SchemaName), Quoter.QuoteTableName(expression.TableName));
}