27 references to IsAssignableFrom
System.Data.Entity (27)
System\Data\Common\Utils\MetadataHelper.cs (1)
281
return (fromType.
IsAssignableFrom
(type));
System\Data\EntityKey.cs (1)
949
Debug.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));
266
else 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)
232
if (dependentType.
IsAssignableFrom
(record.DataRecordInfo.RecordType.EdmType))
System\Data\Mapping\ViewGeneration\GeneratedView.cs (1)
116
if ((queryResultType == null) || (!setMapping.Set.ElementType.
IsAssignableFrom
(queryResultType.TypeUsage.EdmType)))
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (1)
368
if (withRelationship.FromEndEntityType.
IsAssignableFrom
(fromType))
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
245
if (thisExtent.ElementType.
IsAssignableFrom
(fromEndEntityType))
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
256
if (!tokenMember.DeclaringType.
IsAssignableFrom
(extentType))
System\Data\Mapping\ViewValidator.cs (1)
148
if (!(type == _elementType || (_includeSubtypes && _elementType.
IsAssignableFrom
(type))) &&
System\Data\Metadata\Edm\EntitySet.cs (4)
143
if (constraint.ToRole.GetEntityType().
IsAssignableFrom
(this.ElementType) ||
144
this.ElementType.
IsAssignableFrom
(constraint.ToRole.GetEntityType()))
149
if (constraint.FromRole.GetEntityType().
IsAssignableFrom
(this.ElementType) ||
150
this.ElementType.
IsAssignableFrom
(constraint.FromRole.GetEntityType()))
System\Data\Metadata\MappingMetadataHelper.cs (1)
62
if (mapping.IsOfTypes.Any(parentType => parentType.
IsAssignableFrom
(childEntityType)) || mapping.Types.Contains(childEntityType))
System\Data\Metadata\MetadataWorkspace.cs (1)
1451
if (!entitySet.ElementType.
IsAssignableFrom
(entityType))
System\Data\Objects\DataClasses\EntityCollection.cs (1)
203
if (associationEndType.
IsAssignableFrom
(entitySetType))
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
743
if (end2EntityType.
IsAssignableFrom
(ownerEntityType))
749
if (end1EntityType.
IsAssignableFrom
(ownerEntityType))
System\Data\Objects\EntityEntry.cs (2)
163
if (dependentType.
IsAssignableFrom
(_cacheTypeMetadata.DataRecordInfo.RecordType.EdmType))
180
if (dependentType.
IsAssignableFrom
(_cacheTypeMetadata.DataRecordInfo.RecordType.EdmType))
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (1)
127
if (entitySet.ElementType.
IsAssignableFrom
(((CollectionType)treeResultType.EdmType).TypeUsage.EdmType))
System\Data\Objects\ObjectContext.cs (2)
1906
if (!entitySet.ElementType.
IsAssignableFrom
(entityTypeUsage.EdmType))
3174
if (entitySet != null && !entitySet.ElementType.
IsAssignableFrom
(modelEdmType))
System\Data\Objects\ObjectStateManager.cs (1)
349
if ((isAdded) && !entitySet.ElementType.
IsAssignableFrom
(entityEdmType))