Files
Backend-Api/CompanyManagment.EFCore/Mapping/CameraBugReportLogMapping.cs

19 lines
554 B
C#

using Company.Domain.CameraBugReportAgg;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CompanyManagment.EFCore.Mapping
{
public class CameraBugReportLogMapping : IEntityTypeConfiguration<CameraBugReportLog>
{
public void Configure(EntityTypeBuilder<CameraBugReportLog> builder)
{
builder.HasKey(x => x.id);
builder.ToTable("CameraBugReportLogs");
builder.Property(x => x.Message).HasColumnType("ntext").IsRequired();
}
}
}