24 lines
801 B
C#
24 lines
801 B
C#
using Company.Domain.SmsResultAgg;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace CompanyManagment.EFCore.Mapping;
|
|
|
|
public class SmsResultMapping : IEntityTypeConfiguration<SmsResult>
|
|
{
|
|
public void Configure(EntityTypeBuilder<SmsResult> builder)
|
|
{
|
|
builder.ToTable("SmsResults");
|
|
builder.HasKey(x => x.id);
|
|
|
|
builder.Property(x => x.MessageId);
|
|
builder.Property(x => x.Status).HasMaxLength(30);
|
|
builder.Property(x => x.TypeOfSms).HasMaxLength(50);
|
|
builder.Property(x => x.ContractingPartyName).HasMaxLength(50);
|
|
builder.Property(x => x.Mobile).HasMaxLength(12);
|
|
builder.Property(x => x.ContractingPatyId);
|
|
builder.Property(x => x.InstitutionContractId);
|
|
|
|
|
|
}
|
|
} |