61 references to EntityType
System.Data.Entity (39)
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
772
if (BuiltInTypeKind.
EntityType
== e.ResultType.EdmType.BuiltInTypeKind &&
System\Data\Common\EntitySql\CqlErrorHelper.cs (2)
154
case BuiltInTypeKind.
EntityType
:
270
case BuiltInTypeKind.
EntityType
:
System\Data\Common\Internal\Materialization\RecordStateFactory.cs (1)
117
case BuiltInTypeKind.
EntityType
:
System\Data\Common\Internal\Materialization\Translator.cs (2)
343
case BuiltInTypeKind.
EntityType
:
1219
Debug.Assert(cSpaceType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
, "Type was " + cSpaceType.BuiltInTypeKind);
System\Data\Common\Utils\MetadataHelper.cs (1)
226
Debug.Assert(endType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
,
System\Data\Mapping\BaseMetadataMappingVisitor.cs (2)
222
case BuiltInTypeKind.
EntityType
:
322
case BuiltInTypeKind.
EntityType
:
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (1)
609
Debug.Assert(edmType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
||
System\Data\Mapping\StorageMappingItemLoader.cs (1)
2103
if (resultType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
)
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (2)
61
case BuiltInTypeKind.
EntityType
:
375
(member.DeclaringType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
&& (flags & PropagatorFlags.Key) == PropagatorFlags.Key),
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (1)
125
Debug.Assert(BuiltInTypeKind.
EntityType
== extendedRecord.DataRecordInfo.RecordType.EdmType.BuiltInTypeKind);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
350
Debug.Assert(BuiltInTypeKind.
EntityType
== endType.ElementType.BuiltInTypeKind,
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (1)
84
if (project.Projection.ResultType.EdmType.BuiltInTypeKind != BuiltInTypeKind.
EntityType
) { return false; }
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (1)
342
Debug.Assert(typeConstructor != null && typeConstructor.ResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
,
System\Data\Mapping\ViewValidator.cs (1)
195
else if (_elementType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
)
System\Data\Metadata\Edm\EntityType.cs (1)
83
public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.
EntityType
; } }
System\Data\Metadata\Edm\MetadataItem_Static.cs (4)
48
_builtInTypes[(int)BuiltInTypeKind.
EntityType
] = new ComplexType();
195
InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.
EntityType
),
350
new EdmProperty[] { new EdmProperty(EdmConstants.EntityType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.
EntityType
))) });
395
new EdmProperty(EdmConstants.EntityType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.
EntityType
))),
System\Data\Metadata\EdmValidator.cs (1)
176
case BuiltInTypeKind.
EntityType
:
System\Data\Metadata\Helper.cs (2)
144
case BuiltInTypeKind.
EntityType
:
243
return (BuiltInTypeKind.
EntityType
== type.BuiltInTypeKind);
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (2)
536
if (!TryGetLoadedType(propertyInfo.PropertyType, out propertyType) || !(propertyType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
|| propertyType.BuiltInTypeKind == BuiltInTypeKind.CollectionType))
685
if (declaringType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
&& edmScalarPropertyAttribute.EntityKeyProperty)
System\Data\Metadata\TypeHelpers.cs (3)
503
case BuiltInTypeKind.
EntityType
:
535
case BuiltInTypeKind.
EntityType
:
558
case BuiltInTypeKind.
EntityType
:
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
950
if (BuiltInTypeKind.
EntityType
== typeKind ||
1078
case BuiltInTypeKind.
EntityType
:
System\Data\Objects\FieldDescriptor.cs (1)
61
case BuiltInTypeKind.
EntityType
:
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (2)
172
if (BuiltInTypeKind.
EntityType
== resultType.EdmType.BuiltInTypeKind)
182
if (BuiltInTypeKind.
EntityType
== elementType.BuiltInTypeKind)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
179
case BuiltInTypeKind.
EntityType
:
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
1733
if (op.Scoped || op.Type.EdmType.BuiltInTypeKind != BuiltInTypeKind.
EntityType
)
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (1)
437
if (type.BuiltInTypeKind != md.BuiltInTypeKind.
EntityType
)
System.Data.Entity.Design (5)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
132
case BuiltInTypeKind.
EntityType
:
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (3)
987
Debug.Assert(storeConstraint.ToProperties[0].DeclaringType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
, "The property is not from an EntityType");
1030
Debug.Assert(storeConstraint.ToProperties[0].DeclaringType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
, "The property is not from an EntityType");
1087
Debug.Assert(((RefType)storeEndMember.TypeUsage.EdmType).ElementType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
, "the ref is not holding on to an EntityType");
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
131
else if (element.BuiltInTypeKind == BuiltInTypeKind.
EntityType
||
System.Data.Services (7)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (7)
856
if (edmType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
||
1039
edmType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
|| edmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType,
1310
edmType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
||
1346
ResourceTypeKind resourceTypeKind = cspaceType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
? ResourceTypeKind.EntityType : ResourceTypeKind.ComplexType;
1408
if (edmType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
&&
1423
case BuiltInTypeKind.
EntityType
:
1814
case BuiltInTypeKind.
EntityType
:
System.Data.Services.Design (7)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (5)
503
case BuiltInTypeKind.
EntityType
:
712
if (eventArgs.TypeSource.BuiltInTypeKind != BuiltInTypeKind.
EntityType
&&
718
if (eventArgs.TypeSource.BuiltInTypeKind == BuiltInTypeKind.
EntityType
)
736
if (this.GetSourceTypes().Where(x => x.BuiltInTypeKind == BuiltInTypeKind.
EntityType
).Where(x => ((EntityType)x).Name == eventArgs.BaseType.BaseType).Count() != 0)
820
if (((EdmMember)eventArgs.PropertySource).DeclaringType.BuiltInTypeKind != BuiltInTypeKind.
EntityType
&&
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
82
(a.BuiltInTypeKind == BuiltInTypeKind.ComplexType || a.BuiltInTypeKind == BuiltInTypeKind.
EntityType
)
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
181
else if (element.BuiltInTypeKind == BuiltInTypeKind.
EntityType
||
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceUtil.cs (3)
66
case BuiltInTypeKind.
EntityType
:
704
memberType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
, "member type must be primitive, enum, entity or complex type");
729
memberType.BuiltInTypeKind == BuiltInTypeKind.
EntityType
|| memberType.BuiltInTypeKind == BuiltInTypeKind.ComplexType,