本文整理汇总了C#中FluentMigrator.Expressions.AlterSchemaExpression类的典型用法代码示例。如果您正苦于以下问题:C# AlterSchemaExpression类的具体用法?C# AlterSchemaExpression怎么用?C# AlterSchemaExpression使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AlterSchemaExpression类属于FluentMigrator.Expressions命名空间,在下文中一共展示了AlterSchemaExpression类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: CanAlterSchema
public void CanAlterSchema()
{
var expression = new AlterSchemaExpression
{
DestinationSchemaName = "DEST",
SourceSchemaName = "SOURCE",
TableName = "TABLE"
};
generator.Generate(expression);
}
开发者ID:kramerpr,项目名称:fluentmigrator,代码行数:11,代码来源:SqlServerCeAlterTableTests.cs
示例2: CanAlterSchema
public void CanAlterSchema()
{
var expression = new AlterSchemaExpression
{
DestinationSchemaName = "DEST",
SourceSchemaName = "SOURCE",
TableName = "TABLE"
};
var sql = generator.Generate( expression );
sql.ShouldBe(
"ALTER SCHEMA [DEST] TRANSFER [SOURCE].[TABLE]" );
}
开发者ID:gliljas,项目名称:fluentmigrator,代码行数:13,代码来源:SqlServer2005GeneratorTests.cs
示例3: Generate
public override string Generate(AlterSchemaExpression expression)
{
return string.Format("ALTER TABLE {0}.{1} SET SCHEMA {2}", Quoter.QuoteSchemaName(expression.SourceSchemaName), Quoter.QuoteTableName(expression.TableName), Quoter.QuoteSchemaName(expression.DestinationSchemaName));
}
开发者ID:VSoftTechnologies,项目名称:fluentmigrator,代码行数:4,代码来源:PostgresGenerator.cs
示例4: Generate
public override string Generate(AlterSchemaExpression expression)
{
throw new DatabaseOperationNotSupportedExecption();
}
开发者ID:ericklaus,项目名称:fluentmigrator,代码行数:4,代码来源:SqlServerCeGenerator.cs
示例5: Process
public void Process(AlterSchemaExpression expression)
{
Process(Generator.Generate(expression));
}
开发者ID:Ang3lFir3,项目名称:fluentmigrator,代码行数:4,代码来源:ProcessorBase.cs
示例6: Generate
public override string Generate( AlterSchemaExpression expression )
{
throw new NotImplementedException();
}
开发者ID:carlhoerberg,项目名称:fluentmigrator,代码行数:4,代码来源:OracleGenerator.cs
示例7: Truncate
public void Truncate(AlterSchemaExpression expression) { }
开发者ID:BarsBarsovich,项目名称:fluentmigrator,代码行数:1,代码来源:FirebirdTruncator.cs
示例8: CanAlterSchema
public void CanAlterSchema()
{
var expression = new AlterSchemaExpression
{
DestinationSchemaName = "DEST",
SourceSchemaName = "SOURCE",
TableName = "TABLE"
};
var sql = generator.Generate(expression);
sql.ShouldBe("ALTER TABLE \"SOURCE\".\"TABLE\" SET SCHEMA \"DEST\"");
}
开发者ID:timscott,项目名称:fluentmigrator,代码行数:12,代码来源:PostgresGeneratorTests.cs
示例9: Generate
public override string Generate(AlterSchemaExpression expression)
{
return String.Format(AlterSchema, Quoter.QuoteSchemaName(expression.DestinationSchemaName), Quoter.QuoteSchemaName(expression.SourceSchemaName), Quoter.QuoteTableName(expression.TableName));
}
开发者ID:hazzik,项目名称:fluentmigrator,代码行数:4,代码来源:SqlServer2005Generator.cs
示例10: ToStringIsDescriptive
public void ToStringIsDescriptive()
{
var expression = new AlterSchemaExpression { TableName = "Test", DestinationSchemaName = "Bacon" };
expression.ToString().ShouldBe("AlterSchema Bacon Table Test");
}
开发者ID:BarsBarsovich,项目名称:fluentmigrator,代码行数:5,代码来源:AlterSchemaExpressionTests.cs
示例11: ErrorIsNotReturnedWhenDestinationSchemaNameIsNotNullEmptyString
public void ErrorIsNotReturnedWhenDestinationSchemaNameIsNotNullEmptyString()
{
var expression = new AlterSchemaExpression { DestinationSchemaName = "Bacon" };
var errors = ValidationHelper.CollectErrors(expression);
errors.ShouldNotContain(ErrorMessages.DestinationSchemaCannotBeNull);
}
开发者ID:BarsBarsovich,项目名称:fluentmigrator,代码行数:6,代码来源:AlterSchemaExpressionTests.cs
示例12: ErrorIsReturnedWhenDestinationSchemaNameIsNull
public void ErrorIsReturnedWhenDestinationSchemaNameIsNull()
{
var expression = new AlterSchemaExpression { DestinationSchemaName = null };
var errors = ValidationHelper.CollectErrors(expression);
errors.ShouldContain(ErrorMessages.DestinationSchemaCannotBeNull);
}
开发者ID:BarsBarsovich,项目名称:fluentmigrator,代码行数:6,代码来源:AlterSchemaExpressionTests.cs
示例13: ErrorIsReturnedWhenTableNameIsEmptyString
public void ErrorIsReturnedWhenTableNameIsEmptyString()
{
var expression = new AlterSchemaExpression { TableName = String.Empty };
var errors = ValidationHelper.CollectErrors(expression);
errors.ShouldContain(ErrorMessages.TableNameCannotBeNullOrEmpty);
}
开发者ID:BarsBarsovich,项目名称:fluentmigrator,代码行数:6,代码来源:AlterSchemaExpressionTests.cs
示例14: Generate
public override string Generate( AlterSchemaExpression expression )
{
return String.Format("ALTER SCHEMA [{0}] TRANSFER {1}[{2}]", expression.DestinationSchemaName, FormatSchema(expression.SourceSchemaName), expression.TableName );
}
开发者ID:carlhoerberg,项目名称:fluentmigrator,代码行数:4,代码来源:SqlServer2005Generator.cs
示例15: Generate
public override string Generate(AlterSchemaExpression expression)
{
return compatabilityMode.HandleCompatabilty("Schemas are not supported");
}
开发者ID:robertmircea,项目名称:fluentmigrator,代码行数:4,代码来源:GenericGenerator.cs
示例16: CanAlterSchema
public override void CanAlterSchema()
{
var expression = new AlterSchemaExpression();
var result = generator.Generate(expression);
result.ShouldBe(string.Empty);
}
开发者ID:elfrostie,项目名称:fluentmigrator,代码行数:6,代码来源:SqlServer2000AlterTableTests.cs
示例17: Generate
public abstract string Generate(AlterSchemaExpression expression);
开发者ID:ibebbs,项目名称:fluentmigrator,代码行数:1,代码来源:GeneratorBase.cs
注:本文中的FluentMigrator.Expressions.AlterSchemaExpression类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论