我试图将整数从一个数据库映射到一个整数数组,但是我得到了错误:AutoMapper.AutoMapperConfigurationException: 'Custom configuration for members is only supported for top level individual members on a type.' 这就是我所拥有的: 型号: public class Year public int[] Months { get; set; } = new int[3];
} 映射: CreateMap<DataRow, Year