6 writes to BaseType
System.Data.Entity (6)
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (1)
200
_primitiveType.
BaseType
= MetadataItem.EdmProviderManifest.GetPrimitiveType(_primitiveType.PrimitiveTypeKind);
System\Data\Metadata\Converter.cs (2)
352
entityType.
BaseType
= (EdmType)(LoadSchemaElement(element.BaseType,
421
complexType.
BaseType
= (EdmType)(LoadSchemaElement(element.BaseType,
System\Data\Metadata\Edm\PrimitiveType.cs (1)
53
this.
BaseType
= baseType;
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (1)
353
() => edmType.
BaseType
= ResolveBaseType(clrType.BaseType));
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
177
() => ospaceType.
BaseType
= ResolveBaseType((StructuralType)cspaceType.BaseType, type));
92 references to BaseType
System.Data.Entity (56)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (1)
338
for (t = entityBaseFromType; t != entityBaseToType && t != null; t = t.
BaseType
, ++promotionIndex);
System\Data\Common\Utils\MetadataHelper.cs (6)
422
specificType = specificType.
BaseType
as EntityType; //The cast is guaranteed to work. See use of GetItems<T_EdmType> in GetTypesAndSubTypesOf()
440
if (childType.
BaseType
== null) //root type
445
EntityType parentType = childType.
BaseType
as EntityType;
460
EntityType parent = b.
BaseType
as EntityType;
470
parent = parent.
BaseType
as EntityType;
680
currentType = currentType.
BaseType
;
System\Data\EntityModel\SchemaObjectModel\EntityKeyElement.cs (1)
158
property.TypeUsage.EdmType.Name, property.TypeUsage.EdmType.
BaseType
.FullName, primitivePropertyType.PrimitiveTypeKind));
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (1)
301
PrimitiveType baseType = _primitiveType.
BaseType
as PrimitiveType;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (5)
119
Visit(associationType.
BaseType
);
258
Visit(edmFunction.
BaseType
);
280
Visit(complexType.
BaseType
);
292
Visit(refType.
BaseType
);
307
Visit(collectionType.
BaseType
);
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (3)
295
EntityType parentType = memberDeclaringType.
BaseType
as EntityType;
320
if (entitySetType.
BaseType
!= null && entitySetType.
BaseType
.EdmEquals(edge))
System\Data\Metadata\Edm\EdmType.cs (2)
176
type = type.
BaseType
;
340
EdmType baseType =
BaseType
;
System\Data\Metadata\Edm\EntityTypeBase.cs (5)
53
if (this.
BaseType
!= null && ((EntityTypeBase)this.
BaseType
).KeyMembers.Count != 0)
56
return ((EntityTypeBase)this.
BaseType
).KeyMembers;
101
Debug.Assert(this.
BaseType
== null || ((EntityTypeBase)this.
BaseType
).KeyMembers.Count == 0,
System\Data\Metadata\Edm\MemberCollection.cs (6)
108
return ((StructuralType)_declaringType.
BaseType
).Members[index];
171
EdmType baseType = _declaringType.
BaseType
;
196
StructuralType baseType = _declaringType.
BaseType
as StructuralType;
231
((StructuralType)_declaringType.
BaseType
).Members.CopyTo(array, arrayIndex);
251
EdmType baseType = _declaringType.
BaseType
;
305
StructuralType baseType = _declaringType.
BaseType
as StructuralType;
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
188
PrimitiveType basePrimitive = (PrimitiveType)type.
BaseType
;
System\Data\Metadata\EdmValidator.cs (5)
237
if (item.
BaseType
!= null)
287
if (item.
BaseType
!= null)
290
InternalValidate(item.
BaseType
, errors, validatedItems);
303
if (item.
BaseType
== null)
483
if (item.
BaseType
!= null)
System\Data\Metadata\Helper.cs (2)
128
for (EdmType t = firstType.
BaseType
; t != null; t = t.
BaseType
)
System\Data\Metadata\MetadataWorkspace.cs (1)
1281
EdmProviderManifest.Instance.GetFacetDescriptions(clrType.
BaseType
)),
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (5)
171
if (cspaceType.
BaseType
!= null)
173
if (TypesMatchByConvention(type.BaseType, cspaceType.
BaseType
))
177
() => ospaceType.BaseType = ResolveBaseType((StructuralType)cspaceType.
BaseType
, type));
181
string message = Strings.Validator_OSpace_Convention_BaseTypeIncompatible(type.BaseType.FullName, type.FullName, cspaceType.
BaseType
.FullName);
355
BindingFlags flags = cspaceType.
BaseType
== null ? RootEntityPropertyReflectionBindingFlags : PropertyReflectionBindingFlags;
System\Data\Metadata\TypeSemantics.cs (2)
963
for (EdmType ancestor = type2; ancestor != null; ancestor = ancestor.
BaseType
)
970
for (EdmType ancestor = type1; ancestor != null; ancestor = ancestor.
BaseType
)
System\Data\Query\InternalTrees\RelPropertyHelper.cs (2)
214
if (entityType.
BaseType
!= null)
216
foreach (RelProperty p in GetRelProperties(entityType.
BaseType
as EntityTypeBase))
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
1430
if (null != testType.
BaseType
)
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (6)
512
if (type.EdmType.
BaseType
!= null)
515
superTypeInfo = CreateTypeInfoForStructuredType(md.TypeUsage.Create(type.EdmType.
BaseType
), discriminatorMap);
523
if (entityType != null && entityType.
BaseType
!= null)
525
md.TypeUsage baseRefType = TypeHelpers.CreateReferenceTypeUsage(entityType.
BaseType
as md.EntityType);
1129
while (type.
BaseType
!= null)
1131
type = (md.EntityTypeBase)type.
BaseType
;
System\Data\Query\PlanCompiler\TypeInfo.cs (1)
441
PlanCompiler.Assert(type.EdmType.
BaseType
== null, "only root types allowed here");
System.Data.Entity.Design (12)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (5)
255
if (complexType.
BaseType
!= null)
257
_writer.WriteAttributeString(XmlConstants.BaseType, GetFullName(complexType.
BaseType
));
358
if (entityType.
BaseType
!= null)
360
_writer.WriteAttributeString(XmlConstants.BaseType, GetFullName(entityType.
BaseType
));
631
edmType = edmType.
BaseType
;
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
763
Debug.Assert(storeEntityType.
BaseType
== null, "we are assuming simple generation from a database where no types will have a base type");
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
70
Debug.Assert(edmType.
BaseType
== baseType, "The types must be directly derived from basetype");
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
280
return _edmItemCollection.GetItems<EdmType>().Where(b => b.
BaseType
== edmType);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
557
StructuralType parentBaseClass = Item.DeclaringType.
BaseType
as StructuralType;
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (1)
87
StructuralType baseType = Item.DeclaringType.
BaseType
as StructuralType;
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (2)
95
if (Item.
BaseType
== null)
98
return Generator.GetLeastPossibleQualifiedTypeReference(Item.
BaseType
);
System.Data.Services (7)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (7)
973
if (cspaceType.
BaseType
!= null)
1124
type = type.
BaseType
as StructuralType;
1204
derivedType = (EntityType)derivedType.
BaseType
;
1319
if (edmType.
BaseType
!= null)
1321
baseType = PopulateTypeMetadata(workspace, (StructuralType)edmType.
BaseType
, knownTypes, childTypes);
1845
if (entityType.
BaseType
!= null)
1847
xmlWriter.WriteAttributeString(XmlConstants.BaseType, entityType.
BaseType
.FullName);
System.Data.Services.Design (9)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (4)
236
if (baseEntityType.
BaseType
!= null)
238
return IsOpenPropertyOnPath(baseEntityType.
BaseType
as StructuralType, sourcePath);
273
return baseEntityType.
BaseType
!= null ? GetEntityPropertyFromEpmPath(baseEntityType.
BaseType
as StructuralType, sourcePath) : null;
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
81
where (a.
BaseType
!= null) &&
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
476
StructuralType parentBaseClass = Item.DeclaringType.
BaseType
as StructuralType;
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (1)
82
StructuralType baseType = Item.DeclaringType.
BaseType
as StructuralType;
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (2)
86
if (Item.
BaseType
== null)
89
return Generator.GetLeastPossibleQualifiedTypeReference(Item.
BaseType
);
System.Web.DynamicData (3)
DynamicData\ModelProviders\EFDataModelProvider.cs (3)
40
ILookup<EntityType, EntityType> derivedTypesLookup = _context.MetadataWorkspace.GetItems<EntityType>(DataSpace.CSpace).ToLookup(e => (EntityType)e.
BaseType
);
58
if (entityType.
BaseType
== null) {
104
EntityType parentEntityType = entityType.
BaseType
as EntityType;
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceUtil.cs (3)
189
if (entityType.
BaseType
!= null ||
473
for (EdmType t = firstType.
BaseType
; t != null; t = t.
BaseType
)
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (2)
1461
for (EntityType t = (EntityType)firstType.
BaseType
; t != null; t = (EntityType)t.
BaseType
)