如何在DataReader中的AutoMapper中关闭/禁用区分大小写?例如:
using (IDataReader dr = DatabaseContext.ExecuteReader(command))
{
if (dr.FieldCount > 0)
{
AutoMapper.Mapper.CreateMap<IDataReader, IList<AnyDataModel>>();
var data = AutoMapper.Mapper.Map<IDataReader, IList<AnyDataModel>>(dr);
return data;
}
return null;
}
任何帮助?