Skip to content

round 1 - model + mig + some tests#24562

Merged
maumar merged 1 commit intomainfrom
temporal_tables_draft1
Jun 4, 2021
Merged

round 1 - model + mig + some tests#24562
maumar merged 1 commit intomainfrom
temporal_tables_draft1

Conversation

@maumar
Copy link
Copy Markdown
Contributor

@maumar maumar commented Apr 1, 2021

For now just metadata and create+ drop migration operations

Comment thread src/EFCore.SqlServer/Extensions/SqlServerEntityTypeBuilderExtensions.cs Outdated
Comment thread src/EFCore.SqlServer/Extensions/SqlServerEntityTypeExtensions.cs Outdated
Comment thread src/EFCore.SqlServer/Metadata/Conventions/SqlServerTemporalConvention.cs Outdated
Comment thread src/EFCore.SqlServer/Metadata/Internal/SqlServerAnnotationProvider.cs Outdated
Comment thread src/EFCore.SqlServer/Metadata/Internal/SqlServerTemporalTableAnnotationValue.cs Outdated
Comment thread src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs Outdated
Comment thread src/EFCore.SqlServer/Scaffolding/Internal/SqlServerDatabaseModelFactory.cs Outdated
Comment thread test/EFCore.SqlServer.FunctionalTests/Migrations/MigrationsSqlServerTest.cs Outdated
Comment thread src/EFCore.SqlServer/Metadata/Conventions/SqlServerTemporalConvention.cs Outdated
@maumar maumar requested review from AndriySvyryd and bricelam April 1, 2021 07:37
Comment thread src/EFCore.SqlServer/Extensions/SqlServerEntityTypeBuilderExtensions.cs Outdated
Comment thread test/EFCore.SqlServer.FunctionalTests/Migrations/MigrationsSqlServerTest.cs Outdated
@AndriySvyryd
Copy link
Copy Markdown
Member

You should also include the model snapshot changes (SqlServerAnnotationCodeGenerator) and tests (ModelSnapshotSqlServerTest)

Comment thread src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs Outdated
Copy link
Copy Markdown
Contributor

@bricelam bricelam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. (I skimmed through the Migrations and Scaffolding code)

Comment thread src/EFCore.Relational/Migrations/Internal/MigrationsModelDiffer.cs Outdated
Comment thread src/EFCore.SqlServer/Extensions/SqlServerEntityTypeBuilderExtensions.cs Outdated
Comment thread src/EFCore.SqlServer/Infrastructure/Internal/SqlServerModelValidator.cs Outdated
@maumar maumar force-pushed the temporal_tables_draft1 branch from 53b9708 to c3e9c6c Compare April 12, 2021 07:00
Comment thread src/EFCore.SqlServer/Extensions/SqlServerEntityTypeBuilderExtensions.cs Outdated
@maumar maumar force-pushed the temporal_tables_draft1 branch from c3e9c6c to ee6ccc0 Compare April 12, 2021 07:16
Comment thread src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs
Comment thread src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs Outdated
Comment thread test/EFCore.SqlServer.FunctionalTests/Migrations/MigrationsSqlServerTest.cs Outdated
Comment thread test/EFCore.SqlServer.FunctionalTests/Migrations/MigrationsSqlServerTest.cs Outdated
@maumar maumar force-pushed the temporal_tables_draft1 branch from ee6ccc0 to f046c3c Compare April 13, 2021 07:18
Comment thread src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs Outdated
Comment thread src/EFCore.SqlServer/Metadata/Conventions/SqlServerValueGenerationConvention.cs Outdated
Comment thread src/EFCore.SqlServer/Metadata/Internal/SqlServerAnnotationProvider.cs Outdated
Comment thread src/EFCore.SqlServer/Properties/SqlServerStrings.resx Outdated
Comment thread src/EFCore.SqlServer/Properties/SqlServerStrings.resx Outdated
Comment thread src/EFCore.SqlServer/Properties/SqlServerStrings.resx Outdated
Comment thread src/EFCore.SqlServer/Properties/SqlServerStrings.resx Outdated
Comment thread src/EFCore.SqlServer/Properties/SqlServerStrings.resx Outdated
Comment thread src/EFCore.SqlServer/Properties/SqlServerStrings.resx Outdated
Comment thread src/EFCore.SqlServer/Properties/SqlServerStrings.resx Outdated
Comment thread src/EFCore/Design/NestedClosureCodeFragment.cs Outdated
Comment thread test/EFCore.SqlServer.FunctionalTests/Query/QueryBugsTest.cs Outdated
@maumar maumar force-pushed the temporal_tables_draft1 branch from dbf4630 to 6855940 Compare May 28, 2021 06:33
@maumar
Copy link
Copy Markdown
Contributor Author

maumar commented May 28, 2021

new version up @AndriySvyryd @bricelam @smitpatel

@maumar maumar force-pushed the temporal_tables_draft1 branch from 6855940 to 0f42aa8 Compare May 28, 2021 07:00
Comment thread src/EFCore.SqlServer/Extensions/SqlServerTableBuilderExtensions.cs Outdated
Comment thread src/EFCore.SqlServer/Infrastructure/Internal/SqlServerModelValidator.cs Outdated
@maumar maumar force-pushed the temporal_tables_draft1 branch from 0f42aa8 to 351e8a2 Compare May 28, 2021 22:20
Comment thread src/EFCore.SqlServer/Metadata/Conventions/SqlServerTemporalConvention.cs Outdated
Comment thread src/EFCore.SqlServer/Metadata/Conventions/SqlServerTemporalConvention.cs Outdated
Comment thread src/EFCore.SqlServer/Extensions/SqlServerTableBuilderExtensions.cs Outdated
@maumar maumar force-pushed the temporal_tables_draft1 branch 3 times, most recently from 7461ef5 to b7e49cb Compare June 2, 2021 20:37
- added model builder APIs that allows mapping entity to a temporal table as well as related configuration
- added conventions and validation for entities mapped to temporal table
- added migration support for adding/removing/modifying entities mapped to a temporal table
- added model snapshot generation for entities mapped to temporal table
@maumar maumar force-pushed the temporal_tables_draft1 branch from b7e49cb to e7c0b9d Compare June 4, 2021 18:43
@maumar maumar merged commit e7c0b9d into main Jun 4, 2021
@maumar maumar deleted the temporal_tables_draft1 branch June 4, 2021 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants