Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

TechnologyConfiguration.cs 428B

12345678910111213
  1. using Microsoft.EntityFrameworkCore.Metadata.Builders;
  2. namespace Diligent.WebAPI.Data.Configurations
  3. {
  4. public class TechnologyConfiguration : IEntityTypeConfiguration<Technology>
  5. {
  6. public void Configure(EntityTypeBuilder<Technology> builder)
  7. {
  8. builder.Property(c => c.Name).HasMaxLength(128);
  9. builder.Property(c => c.TechnologyType).HasConversion<string>();
  10. }
  11. }
  12. }