4 types derived from ColumnMap
System.Data.Entity (4)
System\Data\Query\InternalTrees\ColumnMap.cs (4)
149internal abstract class SimpleColumnMap : ColumnMap 235internal abstract class StructuredColumnMap : ColumnMap 649internal class RefColumnMap: ColumnMap 707internal abstract class CollectionColumnMap : ColumnMap
164 references to ColumnMap
System.Data.Entity (164)
System\Data\Common\Internal\Materialization\ColumnMapKeyBuilder.cs (4)
54internal static string GetColumnMapKey(ColumnMap columnMap, SpanIndex spanIndex) 132private void Append(string prefix, ColumnMap columnMap) 143private void Append(string prefix, IEnumerable<ColumnMap> elements) 150foreach (ColumnMap element in elements)
System\Data\Common\Internal\Materialization\ShaperFactory.cs (3)
25internal static ShaperFactory Create(Type elementType, QueryCacheManager cacheManager, ColumnMap columnMap, MetadataWorkspace metadata, SpanIndex spanInfo, MergeOption mergeOption, bool valueLayer) 33internal abstract ShaperFactory TypedCreate(QueryCacheManager cacheManager, ColumnMap columnMap, MetadataWorkspace metadata, SpanIndex spanInfo, MergeOption mergeOption, bool valueLayer); 39internal override ShaperFactory TypedCreate(QueryCacheManager cacheManager, ColumnMap columnMap, MetadataWorkspace metadata, SpanIndex spanInfo, MergeOption mergeOption, bool valueLayer)
System\Data\Common\Internal\Materialization\Translator.cs (10)
110internal CollectionTranslatorResult(Expression returnedExpression, ColumnMap columnMap, Type requestedType, Expression expressionToGetCoordinator) 197internal static ShaperFactory<TRequestedType> TranslateColumnMap<TRequestedType>(QueryCacheManager queryCacheManager, ColumnMap columnMap, MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, bool valueLayer) 1036private static Expression Emit_Reader_IsDBNull(ColumnMap columnMap) 1137private static TranslatorResult AcceptWithMappedType(Translator translator, ColumnMap columnMap, ColumnMap parent) 1666ColumnMap propertyColumnMap = pair.Key; 1801private TranslatorResult ProcessCollectionColumnMap(CollectionColumnMap columnMap, TranslatorArg arg, ColumnMap discriminatorColumnMap, object discriminatorValue) 1813ColumnMap elementColumnMap = columnMap.Element; 1825ColumnMap[] columnMaps = new ColumnMap[1] { columnMap.Element };
System\Data\EntityClient\EntityCommandDefinition.cs (10)
71ColumnMap columnMap; 290internal ColumnMap CreateColumnMap(DbDataReader storeDataReader) 298internal ColumnMap CreateColumnMap(DbDataReader storeDataReader, int resultSetIndex) 381ColumnMap columnMap = this.CreateColumnMap(storeDataReader, 0); 401private IEnumerable<ColumnMap> GetNextResultColumnMaps(DbDataReader storeDataReader) 570ColumnMap CreateColumnMap(DbDataReader reader); 578private readonly ColumnMap _columnMap; 581internal ConstantColumnMapGenerator(ColumnMap columnMap, int fieldsRequired) { 586ColumnMap IColumnMapGenerator.CreateColumnMap(DbDataReader reader) { 611ColumnMap IColumnMapGenerator.CreateColumnMap(DbDataReader reader)
System\Data\Query\InternalTrees\ColumnMap.cs (15)
237private readonly ColumnMap[] m_properties; 245internal StructuredColumnMap(md.TypeUsage type, string name, ColumnMap[] properties) 261internal ColumnMap[] Properties { get { return m_properties; } } 272foreach (ColumnMap c in this.Properties) 295internal RecordColumnMap(md.TypeUsage type, string name, ColumnMap[] properties, SimpleColumnMap nullSentinel) 344internal TypedColumnMap(md.TypeUsage type, string name, ColumnMap[] properties) 367ColumnMap[] baseTypeColumns, 450ColumnMap[] baseTypeColumns, 536internal ComplexTypeColumnMap(md.TypeUsage type, string name, ColumnMap[] properties, SimpleColumnMap nullSentinel) 598internal EntityColumnMap(md.TypeUsage type, string name, ColumnMap[] properties, EntityIdentity entityIdentity) 709private readonly ColumnMap m_element; 721internal CollectionColumnMap(md.TypeUsage type, string name, ColumnMap elementMap, SimpleColumnMap[] keys, SimpleColumnMap[] foreignKeys) 750internal ColumnMap Element 770ColumnMap elementMap, 823ColumnMap elementMap,
System\Data\Query\InternalTrees\ColumnMapCopier.cs (20)
44internal class ColumnMapCopier : ColumnMapVisitorWithResults<ColumnMap, VarMap> 72internal static ColumnMap Copy(ColumnMap columnMap, VarMap replacementVarMap) 120where TListType : ColumnMap 166internal override ColumnMap Visit(ComplexTypeColumnMap columnMap, VarMap replacementVarMap) 173ColumnMap[] fieldList = VisitList(columnMap.Properties, replacementVarMap); 183internal override ColumnMap Visit(DiscriminatedCollectionColumnMap columnMap, VarMap replacementVarMap) 185ColumnMap newElementColumnMap = columnMap.Element.Accept(this, replacementVarMap); 198internal override ColumnMap Visit(EntityColumnMap columnMap, VarMap replacementVarMap) 201ColumnMap[] fieldList = VisitList(columnMap.Properties, replacementVarMap); 211internal override ColumnMap Visit(SimplePolymorphicColumnMap columnMap, VarMap replacementVarMap) 221ColumnMap[] newBaseFieldList = VisitList(columnMap.Properties, replacementVarMap); 228internal override ColumnMap Visit(MultipleDiscriminatorPolymorphicColumnMap columnMap, VarMap replacementVarMap) 242internal override ColumnMap Visit(RecordColumnMap columnMap, VarMap replacementVarMap) 249ColumnMap[] fieldList = VisitList(columnMap.Properties, replacementVarMap); 259internal override ColumnMap Visit(RefColumnMap columnMap, VarMap replacementVarMap) 271internal override ColumnMap Visit(ScalarColumnMap columnMap, VarMap replacementVarMap) 282internal override ColumnMap Visit(SimpleCollectionColumnMap columnMap, VarMap replacementVarMap) 284ColumnMap newElementColumnMap = columnMap.Element.Accept(this, replacementVarMap); 296internal override ColumnMap Visit(VarRefColumnMap columnMap, VarMap replacementVarMap)
System\Data\Query\InternalTrees\ColumnMapFactory.cs (14)
56ColumnMap[] baseTypeColumnMaps = null; 59ColumnMap[] propertyColumnMaps = GetColumnMapsForType(storeDataReader, entityType, resultMapping.ReturnTypeColumnsRenameMapping); 90ColumnMap[] propertyColumnMaps = GetColumnMapsForType(storeDataReader, edmType, renameList); 91ColumnMap elementColumnMap = null; 167ColumnMap[] propertyMaps = new ColumnMap[memberInfo.Count]; 216ColumnMap[] propertyColumnMaps, Dictionary<string, FunctionImportReturnTypeStructuralTypeColumnRenameMapping> renameList) 228ColumnMap[] ordinalToColumnMap = new ColumnMap[storeDataReader.FieldCount]; 230foreach (ColumnMap propertyColumnMap in propertyColumnMaps) 247ColumnMap keyColumnMap = ordinalToColumnMap[keyOrdinal]; 268private static ColumnMap[] GetColumnMapsForType(DbDataReader storeDataReader, EdmType edmType, Dictionary<string, FunctionImportReturnTypeStructuralTypeColumnRenameMapping> renameList) 273ColumnMap[] propertyColumnMaps = new ColumnMap[members.Count];
System\Data\Query\InternalTrees\ColumnMapVisitor.cs (9)
42where TListType : ColumnMap 90ColumnMap nullSentinel = columnMap.NullSentinel; 95foreach (ColumnMap p in columnMap.Properties) 118foreach (ColumnMap p in columnMap.Properties) 127foreach (ColumnMap cm in columnMap.TypeChoices.Values) 131foreach (ColumnMap p in columnMap.Properties) 147foreach (var property in columnMap.Properties) 155ColumnMap nullSentinel = columnMap.NullSentinel; 160foreach (ColumnMap p in columnMap.Properties)
System\Data\Query\InternalTrees\Command.cs (1)
1472internal static CollectionInfo CreateCollectionInfo(Var collectionVar, ColumnMap columnMap, VarList flattenedElementVars, VarVec keys, List<InternalTrees.SortKey> sortKeys, object discriminatorValue)
System\Data\Query\InternalTrees\Dump.cs (2)
91static internal string ToXml(ColumnMap columnMap) { 622private static Dictionary<string, object> GetAttributes(ColumnMap columnMap) {
System\Data\Query\InternalTrees\OpCopier.cs (3)
1068private ColumnMap Copy(ColumnMap columnMap) 1113ColumnMap newColumnMap = Copy(ci.ColumnMap);
System\Data\Query\InternalTrees\PhysicalOps.cs (3)
110internal ColumnMap ColumnMap 152internal CollectionInfo(Var collectionVar, ColumnMap columnMap, VarList flattenedElementVars, VarVec keys, List<InternalTrees.SortKey> sortKeys, object discriminatorValue) 165private ColumnMap m_columnMap; // column map for the collection element
System\Data\Query\PlanCompiler\CodeGen.cs (4)
59internal static void Process(PlanCompiler compilerState, out List<ProviderCommandInfo> childCommands, out ColumnMap resultColumnMap, out int columnCount) 88private void Process(out List<ProviderCommandInfo> childCommands, out ColumnMap resultColumnMap, out int columnCount) 105private ColumnMap BuildResultColumnMap(PhysicalProjectOp projectOp) 110ColumnMap realColumnMap = ColumnMapTranslator.Translate(projectOp.ColumnMap, varMap);
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (17)
29internal ColumnMap ExpandColumnMap() 93private ColumnMap CreateColumnMap(md.TypeUsage type, string name) 119List<ColumnMap> propertyColumnMapList = new List<ColumnMap>(); 131foreach (ColumnMap c in superTypeColumnMap.Properties) 146ColumnMap propertyColumnMap = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 188List<ColumnMap> propertyColumnMapList = new List<ColumnMap>(); 194foreach (ColumnMap c in superTypeColumnMap.Properties) 201ColumnMap propertyColumnMap = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 218Dictionary<md.EdmProperty, ColumnMap> keyPropertyMap = new Dictionary<md.EdmProperty, ColumnMap>(); 222ColumnMap propertyColumnMap = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 313ColumnMap propertyColumnMap = CreateColumnMap(property.ToEnd.TypeUsage, property.ToString()); 414ColumnMap[] propertyColumnMapList = new ColumnMap[properties.Count]; 488private ColumnMap CreateStructuralColumnMap(md.TypeUsage type, string name)
System\Data\Query\PlanCompiler\ColumnMapTranslator.cs (35)
42internal delegate ColumnMap ColumnMapTranslatorTranslationDelegate(ColumnMap columnMap); 56internal class ColumnMapTranslator : ColumnMapVisitorWithResults<ColumnMap, ColumnMapTranslatorTranslationDelegate> 112internal static ColumnMap Translate(ColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 123internal static ColumnMap Translate(ColumnMap columnMapToTranslate, Dictionary<Var, ColumnMap> varToColumnMap) 125ColumnMap result = Translate(columnMapToTranslate, 126delegate(ColumnMap columnMap) 157internal static ColumnMap Translate(ColumnMap columnMapToTranslate, Dictionary<Var, Var> varToVarMap) 159ColumnMap result = Translate(columnMapToTranslate, 160delegate(ColumnMap columnMap) 184internal static ColumnMap Translate(ColumnMap columnMapToTranslate, Dictionary<Var, KeyValuePair<int, int>> varToCommandColumnMap) 186ColumnMap result = Translate(columnMapToTranslate, 187delegate(ColumnMap columnMap) 206columnMap.Name = ColumnMap.DefaultColumnName; 228where TResultType : ColumnMap 248ColumnMap newEntitySetColumnMap = entityIdentity.EntitySetColumnMap.Accept(this, translationDelegate); 278internal override ColumnMap Visit(ComplexTypeColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 301internal override ColumnMap Visit(DiscriminatedCollectionColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 303ColumnMap newDiscriminator = columnMap.Discriminator.Accept(this, translationDelegate); 306ColumnMap newElement = columnMap.Element.Accept(this, translationDelegate); 321internal override ColumnMap Visit(EntityColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 339internal override ColumnMap Visit(SimplePolymorphicColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 341ColumnMap newTypeDiscriminator = columnMap.TypeDiscriminator.Accept(this, translationDelegate); 371internal override ColumnMap Visit(MultipleDiscriminatorPolymorphicColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 385internal override ColumnMap Visit(RecordColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 408internal override ColumnMap Visit(RefColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 425internal override ColumnMap Visit(ScalarColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 436internal override ColumnMap Visit(SimpleCollectionColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate) 440ColumnMap newElement = columnMap.Element.Accept(this, translationDelegate); 455internal override ColumnMap Visit(VarRefColumnMap columnMap, ColumnMapTranslatorTranslationDelegate translationDelegate)
System\Data\Query\PlanCompiler\NestPullup.cs (5)
1957Dictionary<Var, ColumnMap> varRefReplacementMap = new Dictionary<Var, ColumnMap>(); 2117private Node ConvertToSingleStreamNest(Node nestNode, Dictionary<Var, ColumnMap> varRefReplacementMap, VarList flattenedOutputVarList, out SimpleColumnMap[] parentKeyColumnMaps) 2144ColumnMap childColumnMap = ColumnMapTranslator.Translate(chiCi.ColumnMap, varRefReplacementMap); 2270ColumnMap newColumnMap = ColumnMapTranslator.Translate(ci.ColumnMap, varMapList[i]);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
980ColumnMap newColumnMap = processor.ExpandColumnMap();
System\Data\Query\PlanCompiler\PlanCompiler.cs (2)
168internal static void Compile(cqt.DbCommandTree ctree, out List<ProviderCommandInfo> providerCommands, out ColumnMap resultColumnMap, out int columnCount, out Common.Utils.Set<md.EntitySet> entitySets) 265private void Compile(out List<ProviderCommandInfo> providerCommands, out ColumnMap resultColumnMap, out int columnCount, out Common.Utils.Set<md.EntitySet> entitySets)
System\Data\Query\PlanCompiler\ProjectionPruner.cs (1)
77internal static void FindVars(ColumnMap columnMap, VarVec vec)
System\Data\Query\ResultAssembly\BridgeDataReader.cs (5)
125static internal DbDataReader Create(DbDataReader storeDataReader, ColumnMap columnMap, MetadataWorkspace workspace, IEnumerable<ColumnMap> nextResultColumnMaps) { 135private static KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>> CreateShaperInfo(DbDataReader storeDataReader, ColumnMap columnMap, MetadataWorkspace workspace) 150private static IEnumerable<KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>>> GetNextResultShaperInfo(DbDataReader storeDataReader, MetadataWorkspace workspace, IEnumerable<ColumnMap> nextResultColumnMaps) 152foreach (var nextResultColumnMap in nextResultColumnMaps)