35 references to IsEntityType
System.Data.Entity (35)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (1)
193
internal static Func<DbExpression, bool> MatchEntityType { get { return (e => TypeSemantics.
IsEntityType
(e.ResultType)); } }
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
433
if (!TypeSemantics.
IsEntityType
(discriminatorFilter.Input.VariableType) ||
System\Data\Common\CommandTrees\ValueExpressions.cs (2)
650
Debug.Assert(TypeSemantics.
IsEntityType
(resultType), "An entity type is required to create a NewEntityWithRelationships expression");
734
Debug.Assert(TypeSemantics.
IsEntityType
(entityResultType), "DbDerefExpression requires an entity result type");
System\Data\Common\EntitySql\SemanticAnalyzer.cs (12)
973
!TypeSemantics.
IsEntityType
(metadataType.TypeUsage) &&
1330
Debug.Assert(TypeSemantics.IsComplexType(type) || TypeSemantics.
IsEntityType
(type) || TypeSemantics.IsRelationshipType(type), "type must have a constructor");
1805
if (!TypeSemantics.
IsEntityType
(converted.ResultType))
1904
if (!TypeSemantics.
IsEntityType
(targetTypeUsage))
1945
if (TypeSemantics.
IsEntityType
(converted.ResultType))
2498
if (!TypeSemantics.
IsEntityType
(targetTypeUsage))
4893
if (!isNominalTypeAllowed && !TypeSemantics.
IsEntityType
(exprToFilter.ResultType))
4908
if (!isNominalTypeAllowed && !TypeSemantics.
IsEntityType
(typeToFilterTo))
4969
if (!isNominalTypeAllowed && !TypeSemantics.
IsEntityType
(typeToTreatTo))
4988
else if (!isNominalTypeAllowed && !TypeSemantics.
IsEntityType
(exprToTreat.ResultType))
5081
if (!isNominalTypeAllowed && !TypeSemantics.
IsEntityType
(elementType))
5092
if (!isNominalTypeAllowed && !TypeSemantics.
IsEntityType
(typeToFilterTo))
System\Data\Metadata\TypeHelpers.cs (2)
161
TypeSemantics.
IsEntityType
(typeUsage) ||
169
TypeSemantics.
IsEntityType
(typeUsage) ||
System\Data\Metadata\TypeSemantics.cs (2)
329
return
IsEntityType
(type) || IsComplexType(type);
503
return (
IsEntityType
(type) || IsComplexType(type));
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
634
(!TypeSemantics.
IsEntityType
(toType) &&
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
2071
!(TypeSemantics.
IsEntityType
(modelType) || TypeSemantics.IsComplexType(modelType)))
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
747
if (!TypeSemantics.
IsEntityType
(elementType) && !TypeSemantics.IsReferenceType(elementType))
System\Data\Objects\ObjectContext.cs (1)
1919
!TypeSemantics.
IsEntityType
(entityTypeUsage))
System\Data\Query\InternalTrees\ScalarOps.cs (1)
1076
Debug.Assert(!TypeSemantics.
IsEntityType
(type), "cannot use this Op for entity construction");
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (1)
517
if (md.TypeSemantics.
IsEntityType
(type))
System\Data\Query\PlanCompiler\ITreeGenerator.cs (3)
1324
if (TypeSemantics.
IsEntityType
(commonType) &&
1497
if (TypeSemantics.
IsEntityType
(e.Argument.ResultType))
2045
else if (TypeSemantics.
IsEntityType
(e.ResultType))
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (1)
360
PlanCompiler.Assert(md.TypeSemantics.
IsEntityType
(childOpType), "unexpected childOpType?");
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (3)
586
else if (kv.Value.IsRootType && (md.TypeSemantics.
IsEntityType
(kv.Key) || md.TypeSemantics.IsComplexType(kv.Key)))
806
if (md.TypeSemantics.
IsEntityType
(rootType.Type))
949
if (md.TypeSemantics.
IsEntityType
(type.Type) &&
System\Data\Query\PlanCompiler\TypeUtils.cs (1)
126
md.TypeSemantics.
IsEntityType
(type) ||
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (1)
314
Debug.Assert(TypeSemantics.
IsEntityType
(properties[i].TypeUsage) || TypeSemantics.IsRowType(properties[i].TypeUsage),