Skip to content

Commit

Permalink
Fix to #35281 - Migrations: CreateTableBuilder<TColumns> Annotation(s…
Browse files Browse the repository at this point in the history
…tring name, object value) should accept object? instead (#35297)

Fixes #35281
  • Loading branch information
maumar authored Dec 10, 2024
1 parent 79e71af commit 4f423a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public virtual OperationBuilder<AddCheckConstraintOperation> CheckConstraint(
/// <param name="name">The annotation name.</param>
/// <param name="value">The annotation value.</param>
/// <returns>The same builder so that multiple calls can be chained.</returns>
public new virtual CreateTableBuilder<TColumns> Annotation(string name, object value)
public new virtual CreateTableBuilder<TColumns> Annotation(string name, object? value)
=> (CreateTableBuilder<TColumns>)base.Annotation(name, value);

private string[] Map(LambdaExpression columns)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10881,7 +10881,7 @@ public virtual async Task Temporal_create_temporal_table_using_EF8_migration_cod
})
.Annotation("SqlServer:IsTemporal", true)
.Annotation("SqlServer:TemporalHistoryTableName", "CustomersHistory")
.Annotation("SqlServer:TemporalHistoryTableSchema", null!)
.Annotation("SqlServer:TemporalHistoryTableSchema", null)
.Annotation("SqlServer:TemporalPeriodEndColumnName", "PeriodEnd")
.Annotation("SqlServer:TemporalPeriodStartColumnName", "PeriodStart");

Expand Down

0 comments on commit 4f423a0

Please sign in to comment.