Skip to content

Fix to #25511 - Temporal Tables: The given key 'SqlServer:TemporalHistoryTableName' was not present in the dictionary when creating migration on entity mapped to temporal table without explicitly providing history table name - #25512

Merged
maumar merged 1 commit into
mainfrom
fix25511
Aug 14, 2021

Conversation

@maumar

@maumar maumar commented Aug 13, 2021

Copy link
Copy Markdown
Contributor

Problem was that we don't store the default history table name in the annotation (like we do with default period property names), instead the getter on IReadOnlyEntityType retrieves the default value if needed.

Fix is to check if the history table annotation is present in the annotation list, just like we do with the history table schema.

Fixes #25511

@maumar
maumar requested a review from AndriySvyryd August 13, 2021 20:26
@maumar
maumar force-pushed the fix25511 branch 2 times, most recently from 8c4a67f to 9d95292 Compare August 13, 2021 21:03
…toryTableName' was not present in the dictionary when creating migration on entity mapped to temporal table without explicitly providing history table name

Problem was that we don't store the default history table name in the annotation (like we do with default period property names), instead the getter on IReadOnlyEntityType retrieves the default value if needed.

Fix is to check if the history table annotation is present in the annotation list, just like we do with the history table schema.

Fixes #25511
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants