2 types derived from SimpleColumnMap
System.Data.Entity (2)
System\Data\Query\InternalTrees\ColumnMap.cs (2)
166internal class ScalarColumnMap : SimpleColumnMap 1030internal class VarRefColumnMap : SimpleColumnMap
97 references to SimpleColumnMap
System.Data.Entity (97)
System\Data\Common\Internal\Materialization\Translator.cs (1)
1002private static Expression Emit_EntityKey_HasValue(SimpleColumnMap[] keyColumns)
System\Data\Query\InternalTrees\ColumnMap.cs (38)
256virtual internal SimpleColumnMap NullSentinel { get { return null; } } 287private SimpleColumnMap m_nullSentinel; 295internal RecordColumnMap(md.TypeUsage type, string name, ColumnMap[] properties, SimpleColumnMap nullSentinel) 304internal override SimpleColumnMap NullSentinel { get { return m_nullSentinel; } } 354private SimpleColumnMap m_typeDiscriminator; 368SimpleColumnMap typeDiscriminator, 381internal SimpleColumnMap TypeDiscriminator { get { return m_typeDiscriminator; } } 441private readonly SimpleColumnMap[] m_typeDiscriminators; 451SimpleColumnMap[] typeDiscriminators, 468internal SimpleColumnMap[] TypeDiscriminators { get { return m_typeDiscriminators; } } 528private SimpleColumnMap m_nullSentinel; 536internal ComplexTypeColumnMap(md.TypeUsage type, string name, ColumnMap[] properties, SimpleColumnMap nullSentinel) 545internal override SimpleColumnMap NullSentinel { get { return m_nullSentinel; } } 710private readonly SimpleColumnMap[] m_foreignKeys; 711private readonly SimpleColumnMap[] m_keys; 721internal CollectionColumnMap(md.TypeUsage type, string name, ColumnMap elementMap, SimpleColumnMap[] keys, SimpleColumnMap[] foreignKeys) 727m_keys = keys ?? new SimpleColumnMap[0]; 728m_foreignKeys = foreignKeys ?? new SimpleColumnMap[0]; 734internal SimpleColumnMap[] ForeignKeys 742internal SimpleColumnMap[] Keys 771SimpleColumnMap[] keys, 772SimpleColumnMap[] foreignKeys) 809private SimpleColumnMap m_discriminator; 824SimpleColumnMap[] keys, 825SimpleColumnMap[] foreignKeys, 826SimpleColumnMap discriminator, 839internal SimpleColumnMap Discriminator { get { return m_discriminator; } } 893private readonly SimpleColumnMap[] m_keys; // list of keys 899internal EntityIdentity(SimpleColumnMap[] keyColumns) 908internal SimpleColumnMap[] Keys { get { return m_keys; } } 928internal SimpleEntityIdentity(md.EntitySet entitySet, SimpleColumnMap[] keyColumns) 949foreach (SimpleColumnMap c in this.Keys) 972private SimpleColumnMap m_entitySetColumn; // (optional) column map representing the entity set 981internal DiscriminatedEntityIdentity(SimpleColumnMap entitySetColumn, md.EntitySet[] entitySetMap, 982SimpleColumnMap[] keyColumns) 994internal SimpleColumnMap EntitySetColumnMap { get { return m_entitySetColumn; } } 1013foreach (SimpleColumnMap c in this.Keys)
System\Data\Query\InternalTrees\ColumnMapCopier.cs (16)
141SimpleColumnMap newEntitySetCol = (SimpleColumnMap)entityIdentity.EntitySetColumnMap.Accept(this, replacementVarMap); 142SimpleColumnMap[] newKeys = VisitList(entityIdentity.Keys, replacementVarMap); 154SimpleColumnMap[] newKeys = VisitList(entityIdentity.Keys, replacementVarMap); 168SimpleColumnMap newNullability = columnMap.NullSentinel; 171newNullability = (SimpleColumnMap)newNullability.Accept(this, replacementVarMap); 186SimpleColumnMap newDiscriminator = (SimpleColumnMap)columnMap.Discriminator.Accept(this, replacementVarMap); 187SimpleColumnMap[] newKeys = VisitList(columnMap.Keys, replacementVarMap); 188SimpleColumnMap[] newForeignKeys = VisitList(columnMap.ForeignKeys, replacementVarMap); 213SimpleColumnMap newDiscriminator = (SimpleColumnMap)columnMap.TypeDiscriminator.Accept(this, replacementVarMap); 244SimpleColumnMap newNullability = columnMap.NullSentinel; 247newNullability = (SimpleColumnMap)newNullability.Accept(this, replacementVarMap); 285SimpleColumnMap[] newKeys = VisitList(columnMap.Keys, replacementVarMap); 286SimpleColumnMap[] newForeignKeys = VisitList(columnMap.ForeignKeys, replacementVarMap);
System\Data\Query\InternalTrees\ColumnMapFactory.cs (3)
238SimpleColumnMap[] keyColumns = new SimpleColumnMap[keyMembers.Count]; 250keyColumns[keyMemberIndex] = (SimpleColumnMap)keyColumnMap;
System\Data\Query\InternalTrees\ColumnMapVisitor.cs (7)
70foreach (SimpleColumnMap columnMap in entityIdentity.Keys) 78foreach (SimpleColumnMap columnMap in entityIdentity.Keys) 104foreach (SimpleColumnMap fk in columnMap.ForeignKeys) 108foreach (SimpleColumnMap k in columnMap.Keys) 139foreach (var typeDiscriminator in columnMap.TypeDiscriminators) 177foreach (SimpleColumnMap fk in columnMap.ForeignKeys) 181foreach (SimpleColumnMap k in columnMap.Keys)
System\Data\Query\InternalTrees\Command.cs (2)
1456new SimpleColumnMap[0], // keys 1457new SimpleColumnMap[0]); // foreign keys
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (17)
122SimpleColumnMap nullSentinelColumnMap = null; 209SimpleColumnMap entitySetIdColumnMap = null; 216List<SimpleColumnMap> keyColumnMapList = new List<SimpleColumnMap>(); 238SimpleColumnMap keyColumnMap = keyPropertyMap[edmKeyProperty] as SimpleColumnMap; 330private SimpleColumnMap CreateEntitySetIdColumnMap(md.EdmProperty prop) 360SimpleColumnMap typeIdColumnMap = CreateTypeIdColumnMap(rootTypeInfo.TypeIdProperty); 407SimpleColumnMap nullSentinelColumnMap = null; 433SimpleColumnMap entitySetIdColumnMap = null; 443SimpleColumnMap[] keyColList = new SimpleColumnMap[entityType.KeyMembers.Count]; 465private SimpleColumnMap CreateSimpleColumnMap(md.TypeUsage type, string name) 468SimpleColumnMap result = new VarRefColumnMap(type, name, newVar); 477private SimpleColumnMap CreateTypeIdColumnMap(md.EdmProperty prop) 534SimpleColumnMap entitySetIdColumnMap, 535SimpleColumnMap[] keyColumnMaps)
System\Data\Query\PlanCompiler\ColumnMapTranslator.cs (7)
253entityIdentity = new DiscriminatedEntityIdentity((SimpleColumnMap)newEntitySetColumnMap, entityIdentity.EntitySetMap, entityIdentity.Keys); 280SimpleColumnMap newNullSentinel = columnMap.NullSentinel; 283newNullSentinel = (SimpleColumnMap)translationDelegate(newNullSentinel); 310columnMap = new DiscriminatedCollectionColumnMap(columnMap.Type, columnMap.Name, newElement, columnMap.Keys, columnMap.ForeignKeys,(SimpleColumnMap)newDiscriminator, columnMap.DiscriminatorValue); 363columnMap = new SimplePolymorphicColumnMap(columnMap.Type, columnMap.Name, columnMap.Properties, (SimpleColumnMap)newTypeDiscriminator, newTypeChoices); 387SimpleColumnMap newNullSentinel = columnMap.NullSentinel; 390newNullSentinel = (SimpleColumnMap)translationDelegate(newNullSentinel);
System\Data\Query\PlanCompiler\NestPullup.cs (6)
1961SimpleColumnMap[] keyColumnMaps; 2117private Node ConvertToSingleStreamNest(Node nestNode, Dictionary<Var, ColumnMap> varRefReplacementMap, VarList flattenedOutputVarList, out SimpleColumnMap[] parentKeyColumnMaps) 2135SimpleColumnMap[] childKeyColumnMaps; 2245parentKeyColumnMaps = new SimpleColumnMap[parentKeys.Count]; 2301SimpleColumnMap[] keyColumnMaps = new SimpleColumnMap[newCollectionInfo.Keys.Count];