public void Seed(ModelBuilder modelBuilder) { var id = 1; var mappableFields = ImportFile.GetPropertyNames() .Select(x => new MappableField() { Id = id++, Name = x, DataType = TypeCode.String }); modelBuilder.Entity <MappableField>().HasData(mappableFields); }