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