Skip to content

Commit

Permalink
Complete the sample with the typed discriminator mapping (#4322)
Browse files Browse the repository at this point in the history
Co-authored-by: Arthur Vickers <[email protected]>
  • Loading branch information
eluchsinger and ajcvickers authored Apr 25, 2023
1 parent 67d2c6e commit af7aaf8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
.Property(e => e.BlogType)
.HasMaxLength(200)
.HasColumnName("blog_type");

modelBuilder.Entity<RssBlog>();
}
#endregion
}
Expand All @@ -30,4 +32,4 @@ public class Blog
public class RssBlog : Blog
{
public string RssUrl { get; set; }
}
}

0 comments on commit af7aaf8

Please sign in to comment.