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