style(blog): use extension-method invocation of ToTable
This commit is contained in:
parent
f878bff8f3
commit
9475205196
@ -8,7 +8,7 @@ internal sealed class UserConfiguration : IEntityTypeConfiguration<User>
|
||||
/// <inheritdoc />
|
||||
public void Configure(EntityTypeBuilder<User> builder)
|
||||
{
|
||||
RelationalEntityTypeBuilderExtensions.ToTable((EntityTypeBuilder)builder, "User");
|
||||
builder.ToTable("User");
|
||||
builder.HasKey(e => e.Id);
|
||||
|
||||
builder.Property(e => e.Id).IsRequired();
|
||||
|
Loading…
Reference in New Issue
Block a user