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
2020{
2121 internal class CompiledQueryRunner
2222 {
23- private static readonly Func < FieldInfo , bool > FieldIsSimple = fieldInfo => TypeIsSimple ( fieldInfo . FieldType ) ;
23+ private static readonly Func < FieldInfo , bool > FieldIsSimple = fieldInfo => IsSimpleType ( fieldInfo . FieldType ) ;
2424
2525 private readonly Domain domain ;
2626 private readonly Session session ;
@@ -204,16 +204,16 @@ private bool AllocateParameterAndReplacer()
204204 || closureType . GetFields ( ) . All ( FieldIsSimple ) ;
205205 }
206206
207- private static bool TypeIsSimple ( Type type )
207+ private static bool IsSimpleType ( Type type )
208208 {
209209 var typeInfo = type . GetTypeInfo ( ) ;
210210 if ( typeInfo . IsGenericType ) {
211211 var genericDef = typeInfo . GetGenericTypeDefinition ( ) ;
212212 return ( genericDef == WellKnownTypes . NullableOfT || genericDef . IsAssignableTo ( WellKnownTypes . IReadOnlyListOfT ) )
213- && TypeIsSimple ( typeInfo . GetGenericArguments ( ) [ 0 ] ) ;
213+ && IsSimpleType ( typeInfo . GetGenericArguments ( ) [ 0 ] ) ;
214214 }
215215 else if ( typeInfo . IsArray ) {
216- return TypeIsSimple ( typeInfo . GetElementType ( ) ) ;
216+ return IsSimpleType ( typeInfo . GetElementType ( ) ) ;
217217 }
218218 else {
219219 return typeInfo . IsPrimitive || typeInfo . IsEnum || type == WellKnownTypes . String || type == WellKnownTypes . Decimal ;
You can’t perform that action at this time.
0 commit comments