DbContextSpecMap.cs 565 B

1234567891011121314151617181920212223
  1. using GreenTree.Nachtragsmanagement.Core.Domain.Misc;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Data.Entity.ModelConfiguration;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace GreenTree.Nachtragsmanagement.Data.Mapping.Misc
  9. {
  10. public class DbContextSpecMap : EntityTypeConfiguration<DbContextSpec>
  11. {
  12. public DbContextSpecMap()
  13. {
  14. ToTable("__DbContextSpec");
  15. HasKey(f => f.Id);
  16. Property(f => f.Name);
  17. Property(f => f.Value);
  18. }
  19. }
  20. }