-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
Milestone
Description
Currently the code doesn't handle indents correctly. For example, scaffolded temporal table configuration:
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Blog>(entity =>
{
entity.ToTable(tb => tb.IsTemporal(ttb =>
{
ttb.UseHistoryTable("BlogsHistory", "dbo");
ttb
.HasPeriodStart("PeriodStart")
.HasColumnName("PeriodStart");
ttb
.HasPeriodEnd("PeriodEnd")
.HasColumnName("PeriodEnd");
}
));
});
modelBuilder.Entity<Post>(entity =>
{
entity.ToTable(tb => tb.IsTemporal(ttb =>
{
ttb.UseHistoryTable("PostsHistory", "dbo");
ttb
.HasPeriodStart("PeriodStart")
.HasColumnName("PeriodStart");
ttb
.HasPeriodEnd("PeriodEnd")
.HasColumnName("PeriodEnd");
}
));Reactions are currently unavailable