Fixed List-detection
This commit is contained in:
		
							parent
							
								
									d3d0ed7378
								
							
						
					
					
						commit
						c7b9f67004
					
				| @ -38,7 +38,7 @@ namespace eu.railduction.netcore.dll.Database_Attribute_System.Attributes | |||||||
|             if (_foreignKeyName == null) _foreignKeyName = classAttribute.primaryKeyAttributes[0]._attributeName; |             if (_foreignKeyName == null) _foreignKeyName = classAttribute.primaryKeyAttributes[0]._attributeName; | ||||||
| 
 | 
 | ||||||
|             // If its a List, get inner type |             // If its a List, get inner type | ||||||
|             if (!(fi.FieldType.IsGenericType && (fi.FieldType.GetGenericTypeDefinition() == typeof(List<>)))) |             if (fi.FieldType.IsGenericType && (fi.FieldType.GetGenericTypeDefinition() == typeof(List<>))) | ||||||
|             { |             { | ||||||
|                 // Check the generic list and get inner-type |                 // Check the generic list and get inner-type | ||||||
|                 foreach (Type interfaceType in fi.FieldType.GetInterfaces()) |                 foreach (Type interfaceType in fi.FieldType.GetInterfaces()) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user