netmash/infrastructure/NDB.Infrastructure.Database.../Entities/Configurations/MigratedScriptConfiguration.cs

15 lines
507 B
C#

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace NDB.Infrastructure.DatabaseMigration.Entities.Configurations
{
internal class MigratedScriptConfiguration : IEntityTypeConfiguration<MigratedScript>
{
public void Configure(EntityTypeBuilder<MigratedScript> builder)
{
builder.ToTable("MigratedScript", "migration").HasKey(z => z.Id);
builder.Property(z => z.Id).ValueGeneratedOnAdd();
}
}
}