Files
Backend-Api/CompanyManagment.EFCore/Mapping/TextManagerMaspping.cs
2024-07-05 21:36:15 +03:30

17 lines
536 B
C#

using Company.Domain.TextManagerAgg;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CompanyManagment.EFCore.Mapping;
public class TextManagerMaspping : IEntityTypeConfiguration<EntityTextManager>
{
public void Configure(EntityTypeBuilder<EntityTextManager> builder)
{
builder.ToTable("TextManager_TextManager");
builder.HasKey(x => x.id);
builder.Property(x => x.NoteNumber);
builder.Property(x => x.NumberTextManager);
}
}