public static T GetMappedObject <T>(this DbDataReader odr, IColumnMapSetting settings = null)
        {
            var columnMaps = DbConnectorUtilities.GetColumnMaps(typeof(T), odr.GetOrdinalColumnNames(settings), settings);

            return(odr.GetMappedObject <T>(columnMaps));
        }
        public static object GetMappedObject(this DbDataReader odr, Type objType, IColumnMapSetting settings = null)
        {
            var columnMaps = DbConnectorUtilities.GetColumnMaps(objType, odr.GetOrdinalColumnNames(settings), settings);

            return(odr.GetMappedObject(objType, columnMaps));
        }
 /// <summary>
 /// Creates an <see cref="IEnumerable{ColumnMap}"/> based on the provided type.
 /// </summary>
 /// <param name="odr">The <see cref="DbDataReader"/> to use.</param>
 /// <param name="objType">The <see cref="Type"/> to use.</param>
 /// <param name="settings">The <see cref="IColumnMapSetting"/> to use. (Optional)</param>
 /// <returns>The <see cref="IEnumerable{ColumnMap}"/>.</returns>
 public static IEnumerable <ColumnMap> GetColumnMaps(this DbDataReader odr, Type objType, IColumnMapSetting settings = null)
 {
     return(DbConnectorUtilities.GetColumnMaps(objType, odr.GetOrdinalColumnNames(settings), settings));
 }