netmash/infrastructure/Netmash.Infrastructure.Data.../Entities/Configurations/MigratedScriptConfiguration.cs

15 lines
511 B
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
2023-01-12 01:01:36 +02:00
namespace Netmash.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();
}
}
}