@@ -171,13 +171,14 @@ public IEnumerable<T> ExecuteDeferredQuery<T>(TableMapping map)
171
171
172
172
while ( sqlite . Step ( stmt ) == Result . Row )
173
173
{
174
- var obj = isPrimitiveType ? null : _conn . Resolver . CreateObject ( map . MappedType ) ;
175
- if ( _conn . ColumnInformationProvider . TryReadObject ( obj , sqlite , stmt ) )
174
+ var obj = _conn . ColumnInformationProvider . TryReadObject ( map , sqlite , stmt ) ;
175
+ if ( obj != null )
176
176
{
177
177
yield return ( T ) obj ;
178
178
}
179
179
else
180
180
{
181
+ obj = isPrimitiveType ? null : _conn . Resolver . CreateObject ( map . MappedType ) ;
181
182
for ( var i = 0 ; i < cols . Length ; i ++ )
182
183
{
183
184
ColType colType ;
@@ -443,10 +444,6 @@ internal static void BindParameter(ISQLiteApi isqLite3Api, IDbStatement stmt, in
443
444
isqLite3Api . BindText16 ( stmt , index , val , - 1 , NegativePointer ) ;
444
445
}
445
446
}
446
- else if ( Orm . ColumnInformationProvider . TryBindParameter ( isqLite3Api , stmt , index , value ) )
447
- {
448
- return ;
449
- }
450
447
else if ( value . GetType ( ) . GetTypeInfo ( ) . IsEnum )
451
448
{
452
449
isqLite3Api . BindInt ( stmt , index , Convert . ToInt32 ( value ) ) ;
@@ -634,10 +631,6 @@ private object ReadCol(IDbStatement stmt, int index, ColType type, Type clrType)
634
631
var value = ( sbyte ) sqlite . ColumnInt ( stmt , index ) ;
635
632
return _conn . Resolver . CreateObject ( clrType , new object [ ] { value } ) ;
636
633
}
637
- if ( _conn . ColumnInformationProvider . TryReadCol ( sqlite , stmt , index , clrType , out var obj ) )
638
- {
639
- return obj ! ;
640
- }
641
634
if ( clrType == typeof ( byte [ ] ) )
642
635
{
643
636
return sqlite . ColumnByteArray ( stmt , index ) . ToArray ( ) ;
0 commit comments