| 12345678910111213141516171819202122232425 |
- using Microsoft.EntityFrameworkCore.Metadata.Builders;
-
- namespace Diligent.WebAPI.Data.Configurations
- {
- public class ApplicantConfiguration : IEntityTypeConfiguration<Applicant>
- {
- public void Configure(EntityTypeBuilder<Applicant> builder)
- {
- builder.Property(c => c.FirstName).HasMaxLength(128);
- builder.Property(c => c.LastName).HasMaxLength(128);
- builder.Property(c => c.LastName).HasMaxLength(128);
- builder.Property(c => c.Position).HasMaxLength(128);
- builder.Property(c => c.ProfessionalQualification).HasMaxLength(128);
- builder.Property(c => c.CV).IsRequired(true);
- builder.Property(c => c.Email).HasMaxLength(128);
- builder.Property(c => c.PhoneNumber).HasMaxLength(30);
- builder.Property(c => c.LinkedlnLink).IsRequired(false);
- builder.Property(c => c.GithubLink).IsRequired(false);
- builder.Property(c => c.BitBucketLink).IsRequired(false);
- builder.Property(c => c.ApplicationChannel).IsRequired(false);
- builder.Property(c => c.TypeOfEmployment).IsRequired(true).HasConversion<string>();
- builder.Property(c => c.Gender).IsRequired(true).HasConversion<string>();
- }
- }
- }
|