アプリケーションで の最新バージョンを使用AutoMapperしています。DataTableオブジェクトを型に変換したいのですListが、次のコードを使用していますDataTable
Mapper.CreateMap<IDataReader, List<AutoShiftReportConfigDto>>();
var response = Mapper.Map<IDataReader, List<AutoShiftReportConfigDto>>(reader.CreateDataReader());
しかし、それは常に 0 カウントを返します。私のDataTable列名もAutoShiftReportConfigDtoのプロパティの型と名前と同じです