fix: rename table

This commit is contained in:
Polianin Nikita 2024-05-30 20:29:11 +03:00
parent 8a103831eb
commit b81fe6d8c1

View File

@ -8,7 +8,7 @@ public sealed class CampusConfiguration : IEntityTypeConfiguration<Campus>
{
public void Configure(EntityTypeBuilder<Campus> builder)
{
builder.ToTable("MyCampusName");
builder.ToTable(nameof(Campus));
builder.HasKey(c => c.Id);
builder.HasIndex(c => c.Id).IsUnique();
builder.Property(c => c.Id).HasColumnType("INTEGER").IsRequired().ValueGeneratedOnAdd();