Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ApplicantConfiguration.cs 1017B

12345678910111213141516171819202122
  1. using Microsoft.EntityFrameworkCore.Metadata.Builders;
  2. namespace Diligent.WebAPI.Data.Configurations
  3. {
  4. public class ApplicantConfiguration : IEntityTypeConfiguration<Applicant>
  5. {
  6. public void Configure(EntityTypeBuilder<Applicant> builder)
  7. {
  8. builder.Property(c => c.FirstName).HasMaxLength(128);
  9. builder.Property(c => c.LastName).HasMaxLength(128);
  10. builder.Property(c => c.LastName).HasMaxLength(128);
  11. builder.Property(c => c.Position).HasMaxLength(128);
  12. builder.Property(c => c.CV).IsRequired(true);
  13. builder.Property(c => c.Email).HasMaxLength(128);
  14. builder.Property(c => c.PhoneNumber).HasMaxLength(30);
  15. builder.Property(c => c.LinkedlnLink).IsRequired(false);
  16. builder.Property(c => c.GithubLink).IsRequired(false);
  17. builder.Property(c => c.BitBucketLink).IsRequired(false);
  18. builder.Property(c => c.ApplicationChannel).IsRequired(false);
  19. }
  20. }
  21. }