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