File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Orm/Xtensive.Orm/Orm/Internals Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace Xtensive.Orm.Internals
20
20
{
21
21
internal class CompiledQueryRunner
22
22
{
23
- private static readonly Func < FieldInfo , bool > FieldIsSimple = fieldInfo => TypeIsSimple ( fieldInfo . FieldType ) ;
23
+ private static readonly Func < FieldInfo , bool > FieldIsSimple = fieldInfo => IsSimpleType ( fieldInfo . FieldType ) ;
24
24
25
25
private readonly Domain domain ;
26
26
private readonly Session session ;
@@ -204,16 +204,16 @@ private bool AllocateParameterAndReplacer()
204
204
|| closureType . GetFields ( ) . All ( FieldIsSimple ) ;
205
205
}
206
206
207
- private static bool TypeIsSimple ( Type type )
207
+ private static bool IsSimpleType ( Type type )
208
208
{
209
209
var typeInfo = type . GetTypeInfo ( ) ;
210
210
if ( typeInfo . IsGenericType ) {
211
211
var genericDef = typeInfo . GetGenericTypeDefinition ( ) ;
212
212
return ( genericDef == WellKnownTypes . NullableOfT || genericDef . IsAssignableTo ( WellKnownTypes . IReadOnlyListOfT ) )
213
- && TypeIsSimple ( typeInfo . GetGenericArguments ( ) [ 0 ] ) ;
213
+ && IsSimpleType ( typeInfo . GetGenericArguments ( ) [ 0 ] ) ;
214
214
}
215
215
else if ( typeInfo . IsArray ) {
216
- return TypeIsSimple ( typeInfo . GetElementType ( ) ) ;
216
+ return IsSimpleType ( typeInfo . GetElementType ( ) ) ;
217
217
}
218
218
else {
219
219
return typeInfo . IsPrimitive || typeInfo . IsEnum || type == WellKnownTypes . String || type == WellKnownTypes . Decimal ;
You can’t perform that action at this time.
0 commit comments