Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Issue: Additional testing for Migrations [434]

$
0
0
[MigrationsTheory] // TODO: Can't handle this yet (table rebuild)
public void Can_change_column_to_identity_column_when_no_data_present()
{
ResetDatabase();

var migrator = CreateMigrator<ShopContext_v1>();

migrator.Update();

migrator = CreateMigrator<ShopContext_v1>(new AlterColumnWithIdentityMigration());

migrator.Update();

// TODO: Assert column is identity
}

// TODO: integer-float conversions
public abstract class AutoAndGenerateScenarios_AlterColumnType<TContextV1, TContextV2>


All tests in CreateIndexScenarios and DropIndexScenarios need verification. Example:
[MigrationsTheory]
public void Can_create_simple_index()
{
ResetDatabase();

var migrator = CreateMigrator<ShopContext_v1>();

migrator.Update();

migrator = CreateMigrator<ShopContext_v1>(new CreateSimpleIndexMigration());

migrator.Update();

// TODO: Verify
}





Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>