style(blog): use extension-method invocation of ToTable

This commit is contained in:
Oliver Booth 2023-08-13 15:25:25 +01:00
parent f878bff8f3
commit 9475205196
Signed by: oliverbooth
GPG Key ID: B89D139977693FED

View File

@ -8,7 +8,7 @@ internal sealed class UserConfiguration : IEntityTypeConfiguration<User>
/// <inheritdoc /> /// <inheritdoc />
public void Configure(EntityTypeBuilder<User> builder) public void Configure(EntityTypeBuilder<User> builder)
{ {
RelationalEntityTypeBuilderExtensions.ToTable((EntityTypeBuilder)builder, "User"); builder.ToTable("User");
builder.HasKey(e => e.Id); builder.HasKey(e => e.Id);
builder.Property(e => e.Id).IsRequired(); builder.Property(e => e.Id).IsRequired();