Skip to content

Instantly share code, notes, and snippets.

@aevitas
Created November 21, 2021 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aevitas/66f70fc549243df2b07334f0cf3f1671 to your computer and use it in GitHub Desktop.
Save aevitas/66f70fc549243df2b07334f0cf3f1671 to your computer and use it in GitHub Desktop.
modelBuilder
.Entity<ShippingAddress>()
.ToTable(
"ShippingAddresses",
b => b.IsTemporal(
b =>
{
b.HasPeriodStart("ValidFrom");
b.HasPeriodEnd("ValidTo");
b.UseHistoryTable("ShippingAddressHistory");
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment