.
This commit is contained in:
@@ -32,5 +32,13 @@ internal class MemberConfiguration : IEntityTypeConfiguration<Member>
|
||||
.HasMaxLength(MemberAvatar.Limit)
|
||||
.HasColumnName("Avatar");
|
||||
});
|
||||
|
||||
builder.OwnsOne(x => x.NationalCode, sa =>
|
||||
{
|
||||
sa.Property(x => x.Value)
|
||||
.IsRequired(false)
|
||||
.HasMaxLength(MemberNationalCode.Limit)
|
||||
.HasColumnName("NationalCode");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,17 @@ public class ShopConfiguration : IEntityTypeConfiguration<Domain.Shops.Entities.
|
||||
.HasMaxLength(ShopLogo.Limit)
|
||||
.HasColumnName("Logo");
|
||||
});
|
||||
builder.OwnsOne(x => x.BusinessLicense, sa =>
|
||||
{
|
||||
sa.Property(x => x.Image)
|
||||
.HasMaxLength(ShopBusinessLicense.ImageLimit)
|
||||
.HasColumnName("ShopBusinessLicenseImage");
|
||||
|
||||
sa.Property(x => x.Code)
|
||||
.HasMaxLength(ShopBusinessLicense.CodeLimit)
|
||||
.HasColumnName("ShopBusinessLicenseCode");
|
||||
|
||||
});
|
||||
builder.OwnsOne(x => x.Location, sa =>
|
||||
{
|
||||
sa.Property(x => x.PostalCode).HasColumnName(nameof(ShopLocation.PostalCode));
|
||||
|
||||
Reference in New Issue
Block a user