27 references to IsAssignableFrom
System.Data.Entity (27)
System\Data\Common\Utils\MetadataHelper.cs (1)
281return (fromType.IsAssignableFrom(type));
System\Data\EntityKey.cs (1)
949Debug.Assert(entitySet != null && entitySet.ElementType.IsAssignableFrom(entityType), "Entity types do not match");
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (2)
241_columnListForIsTypeOfType.Where(t => t.Type.IsAssignableFrom(typeForRename)); 266else if (lowestParent.Type.IsAssignableFrom(node.Type))
System\Data\Mapping\StorageModificationFunctionMapping.cs (1)
216(constraint.ToRole.GetEntityType().IsAssignableFrom(entityType)))
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (1)
106.IsAssignableFrom(entityType)) { continue; }
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
232if (dependentType.IsAssignableFrom(record.DataRecordInfo.RecordType.EdmType))
System\Data\Mapping\ViewGeneration\GeneratedView.cs (1)
116if ((queryResultType == null) || (!setMapping.Set.ElementType.IsAssignableFrom(queryResultType.TypeUsage.EdmType)))
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (1)
368if (withRelationship.FromEndEntityType.IsAssignableFrom(fromType))
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
245if (thisExtent.ElementType.IsAssignableFrom(fromEndEntityType))
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
256if (!tokenMember.DeclaringType.IsAssignableFrom(extentType))
System\Data\Mapping\ViewValidator.cs (1)
148if (!(type == _elementType || (_includeSubtypes && _elementType.IsAssignableFrom(type))) &&
System\Data\Metadata\Edm\EntitySet.cs (4)
143if (constraint.ToRole.GetEntityType().IsAssignableFrom(this.ElementType) || 144this.ElementType.IsAssignableFrom(constraint.ToRole.GetEntityType())) 149if (constraint.FromRole.GetEntityType().IsAssignableFrom(this.ElementType) || 150this.ElementType.IsAssignableFrom(constraint.FromRole.GetEntityType()))
System\Data\Metadata\MappingMetadataHelper.cs (1)
62if (mapping.IsOfTypes.Any(parentType => parentType.IsAssignableFrom(childEntityType)) || mapping.Types.Contains(childEntityType))
System\Data\Metadata\MetadataWorkspace.cs (1)
1451if (!entitySet.ElementType.IsAssignableFrom(entityType))
System\Data\Objects\DataClasses\EntityCollection.cs (1)
203if (associationEndType.IsAssignableFrom(entitySetType))
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
743if (end2EntityType.IsAssignableFrom(ownerEntityType)) 749if (end1EntityType.IsAssignableFrom(ownerEntityType))
System\Data\Objects\EntityEntry.cs (2)
163if (dependentType.IsAssignableFrom(_cacheTypeMetadata.DataRecordInfo.RecordType.EdmType)) 180if (dependentType.IsAssignableFrom(_cacheTypeMetadata.DataRecordInfo.RecordType.EdmType))
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (1)
127if (entitySet.ElementType.IsAssignableFrom(((CollectionType)treeResultType.EdmType).TypeUsage.EdmType))
System\Data\Objects\ObjectContext.cs (2)
1906if (!entitySet.ElementType.IsAssignableFrom(entityTypeUsage.EdmType)) 3174if (entitySet != null && !entitySet.ElementType.IsAssignableFrom(modelEdmType))
System\Data\Objects\ObjectStateManager.cs (1)
349if ((isAdded) && !entitySet.ElementType.IsAssignableFrom(entityEdmType))