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