4 instantiations of ObjectTypeMapping
System.Data.Entity (4)
System\Data\Common\Internal\Materialization\Util.cs (1)
67
typeMapping = new
ObjectTypeMapping
(ospaceType, cspaceType);
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (3)
271
ObjectTypeMapping typeMapping = new
ObjectTypeMapping
(clrType, cdmType);
376
this.AddInternalMapping(new
ObjectTypeMapping
(ospaceType, type));
463
ObjectTypeMapping objectTypeMapping = new
ObjectTypeMapping
(objectType, edmType);
55 references to ObjectTypeMapping
System.Data.Entity (55)
System\Data\Common\Internal\Materialization\Translator.cs (5)
175
private readonly Dictionary<EdmType,
ObjectTypeMapping
> _objectTypeMappings = new Dictionary<EdmType,
ObjectTypeMapping
>();
456
private
ObjectTypeMapping
LookupObjectMapping(EdmType edmType)
460
ObjectTypeMapping
result;
1357
ObjectTypeMapping
mapping = LookupObjectMapping(columnMap.Type.EdmType);
System\Data\Common\Internal\Materialization\Util.cs (3)
17
internal static
ObjectTypeMapping
GetObjectMapping(EdmType type, MetadataWorkspace workspace)
24
return (
ObjectTypeMapping
)workspace.GetMap(type, DataSpace.OCSpace);
63
ObjectTypeMapping
typeMapping;
System\Data\Common\Utils\MetadataHelper.cs (2)
177
ObjectTypeMapping
objectMapping = (
ObjectTypeMapping
)map;
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (25)
271
ObjectTypeMapping
typeMapping = new ObjectTypeMapping(clrType, cdmType);
323
clrType = ((
ObjectTypeMapping
)GetMap(cdmType)).ClrType;
358
cdmType = ((
ObjectTypeMapping
)GetMap(clrType)).EdmType;
381
private void AddInternalMapping(
ObjectTypeMapping
objectMap)
429
internal static
ObjectTypeMapping
LoadObjectMapping(EdmType cdmType, EdmType objectType, DefaultObjectMappingItemCollection ocItemCollection)
431
Dictionary<string,
ObjectTypeMapping
> typeMappings = new Dictionary<string,
ObjectTypeMapping
>(StringComparer.Ordinal);
432
ObjectTypeMapping
typeMapping = LoadObjectMapping(cdmType, objectType, ocItemCollection, typeMappings);
437
foreach (
ObjectTypeMapping
map in typeMappings.Values)
446
private static
ObjectTypeMapping
LoadObjectMapping(EdmType edmType, EdmType objectType, DefaultObjectMappingItemCollection ocItemCollection,
447
Dictionary<string,
ObjectTypeMapping
> typeMappings)
463
ObjectTypeMapping
objectTypeMapping = new ObjectTypeMapping(objectType, edmType);
606
private static void LoadEntityTypeOrComplexTypeMapping(
ObjectTypeMapping
objectMapping, EdmType edmType, EdmType objectType,
607
DefaultObjectMappingItemCollection ocItemCollection, Dictionary<string,
ObjectTypeMapping
> typeMappings)
748
private static void LoadAssociationTypeMapping(
ObjectTypeMapping
objectMapping, EdmType edmType, EdmType objectType,
749
DefaultObjectMappingItemCollection ocItemCollection, Dictionary<string,
ObjectTypeMapping
> typeMappings)
791
DefaultObjectMappingItemCollection ocItemCollection, Dictionary<string,
ObjectTypeMapping
> typeMappings)
800
ObjectTypeMapping
complexTypeMapping = LoadTypeMapping(edmComplexType, objectComplexType, ocItemCollection, typeMappings);
807
private static
ObjectTypeMapping
LoadTypeMapping(EdmType edmType, EdmType objectType,
808
DefaultObjectMappingItemCollection ocItemCollection, Dictionary<string,
ObjectTypeMapping
> typeMappings)
810
ObjectTypeMapping
objectTypeMapping;
820
ObjectTypeMapping
typeMapping;
824
return (
ObjectTypeMapping
)typeMapping;
832
private bool ContainsMap(GlobalItem cspaceItem, out
ObjectTypeMapping
map)
838
map = (
ObjectTypeMapping
)this[index];
System\Data\Mapping\ObjectComplexPropertyMapping.cs (2)
31
internal ObjectComplexPropertyMapping(EdmProperty edmProperty, EdmProperty clrProperty,
ObjectTypeMapping
complexTypeMapping)
39
private readonly
ObjectTypeMapping
m_objectTypeMapping;
System\Data\Metadata\ClrPerspective.cs (2)
69
ObjectTypeMapping
objectTypeMap = map as
ObjectTypeMapping
;
System\Data\Metadata\MetadataWorkspace.cs (5)
1043
ObjectTypeMapping
ocMap = map as
ObjectTypeMapping
;
1159
ObjectTypeMapping
ocMap = map as
ObjectTypeMapping
;
1276
clrType = ((
ObjectTypeMapping
)map).ClrType;
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
671
ObjectTypeMapping
objectMap = (
ObjectTypeMapping
)map;
System\Data\Objects\Internal\ComplexTypeMaterializer.cs (2)
121
ObjectTypeMapping
mapping = System.Data.Common.Internal.Materialization.Util.GetObjectMapping(recordInfo.RecordType.EdmType, _workspace);
138
internal Plan(TypeUsage key,
ObjectTypeMapping
mapping, System.Collections.ObjectModel.ReadOnlyCollection<FieldMetadata> fields)
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (1)
106
ObjectTypeMapping
mapping = System.Data.Common.Internal.Materialization.Util.GetObjectMapping(declaringEntityType, relatedEnd.WrappedOwner.Context.MetadataWorkspace);
System\Data\Objects\ObjectStateManager.cs (4)
2983
typeMetadata = AddStateManagerTypeMetadata(entitySet, (
ObjectTypeMapping
)
3003
typeMetadata = AddStateManagerTypeMetadata(edmType, (
ObjectTypeMapping
)
3013
private StateManagerTypeMetadata AddStateManagerTypeMetadata(EntitySet entitySet,
ObjectTypeMapping
mapping)
3043
private StateManagerTypeMetadata AddStateManagerTypeMetadata(EdmType edmType,
ObjectTypeMapping
mapping)
System\Data\Objects\ObjectStateManagerMetadata.cs (2)
144
private readonly
ObjectTypeMapping
_ocObjectMap;
150
internal StateManagerTypeMetadata(EdmType edmType,
ObjectTypeMapping
mapping)