3 instantiations of Cell
System.Data.Entity (3)
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
460
result.CellGroups = cellGroups.Select(setOfcells => new CellGroup(setOfcells.Select(cell => new
Cell
(cell)))).ToList();
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (1)
250
return new
Cell
(cQuery, sQuery, label, cellNumber);
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (1)
96
List<CellGroup> cellGroups = cellGroups = result.CellGroups.Select(setOfcells => new CellGroup(setOfcells.Select(cell => new
Cell
(cell)))).ToList();
159 references to Cell
System.Data.Entity (159)
System\Data\Mapping\StorageEntityContainerMapping.cs (2)
24
using CellGroup = Set<
Cell
>;
547
internal List<
Cell
> Cells;
System\Data\Mapping\ViewGeneration\CellCreator.cs (19)
63
internal List<
Cell
> GenerateCells(ConfigViewGenerator config)
65
List<
Cell
> cells = new List<
Cell
>();
75
foreach (
Cell
cell in cells)
96
private void ExpandCells(List<
Cell
> cells)
100
foreach (
Cell
cell in cells)
121
foreach (
Cell
cell in cells)
139
foreach (
Cell
cell in cells.ToArray())
153
Cell
resultCell = null;
167
Cell
resultCell = null;
193
private bool TryCreateAdditionalCellWithCondition(
Cell
originalCell, MemberPath memberToExpand, bool conditionValue, ViewTarget viewTarget, out
Cell
result)
250
Cell
newCell;
253
newCell =
Cell
.CreateCS(rightQuery, leftQuery, originalCell.CellLabel, m_currentCellNumber);
257
newCell =
Cell
.CreateCS(leftQuery, rightQuery, originalCell.CellLabel, m_currentCellNumber);
268
private void ExtractCells(List<
Cell
> cells)
319
Set<EdmType> allTypes, List<
Cell
> cells)
351
Cell
cell =
Cell
.CreateCS(cQuery, sQuery, label, m_currentCellNumber);
System\Data\Mapping\ViewGeneration\CellPartitioner.cs (18)
23
using CellGroup = Set<
Cell
>;
33
internal CellPartitioner(IEnumerable<
Cell
> cells, IEnumerable<ForeignConstraint> foreignKeyConstraints)
41
private IEnumerable<
Cell
> m_cells;
60
UndirectedGraph<
Cell
> graph = new UndirectedGraph<
Cell
>(EqualityComparer<
Cell
>.Default);
62
List<
Cell
> alreadyAddedCells = new List<
Cell
>();
66
foreach (
Cell
cell in m_cells)
72
foreach (
Cell
existingCell in alreadyAddedCells)
103
private static bool AreCellsConnectedViaRelationship(
Cell
cell1,
Cell
cell2)
120
private static List<CellGroup> GenerateConnectedComponents(UndirectedGraph<
Cell
> graph)
122
KeyToListMap<int,
Cell
> groupMap = graph.GenerateConnectedComponents();
128
ReadOnlyCollection<
Cell
> cellsInComponent = groupMap.ListForKey(setNum);
137
private bool OverlapViaForeignKeys(
Cell
cell1,
Cell
cell2)
156
Cell
.CellsToBuilder(builder, m_cells);
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (1)
63
Cell
cell = wrapper.OnlyInputCell;
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (4)
56
internal Cell(
Cell
source)
223
internal static void CellsToBuilder(StringBuilder builder, IEnumerable<
Cell
> cells)
228
foreach (
Cell
cell in cells)
248
internal static
Cell
CreateCS(CellQuery cQuery, CellQuery sQuery, CellLabel label, int cellNumber)
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (5)
206
internal ErrorLog.Record CheckForDuplicateFields(CellQuery cQuery,
Cell
sourceCell)
317
internal ErrorLog.Record CheckForProjectedNotNullSlots(
Cell
sourceCell, IEnumerable<
Cell
> associationSets)
344
foreach (
var
associationCell in associationSets.Where(c => c.GetRightQuery(target).Extent.EdmEquals(association)))
458
internal ErrorLog.Record VerifyKeysPresent(
Cell
ownerCell, Func<object, object, string> formatEntitySetMessage,
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (4)
338
ComputeConstantDomainSetsForSlotsInQueryViews(IEnumerable<
Cell
> cells, EdmItemCollection edmItemCollection, bool isValidationEnabled)
344
foreach (
Cell
cell in cells)
389
ComputeConstantDomainSetsForSlotsInUpdateViews(IEnumerable<
Cell
> cells, EdmItemCollection edmItemCollection)
394
foreach (
Cell
cell in cells)
System\Data\Mapping\ViewGeneration\Structures\ErrorLog.cs (11)
108
IEnumerable<
Cell
> cells = LeftCellWrapper.GetInputCellsForWrappers(wrappers);
112
internal Record(bool isError, ViewGenErrorCode errorCode, string message,
Cell
sourceCell, string debugMessage)
114
Init(isError, errorCode, message, new
Cell
[] { sourceCell }, debugMessage);
117
internal Record(bool isError, ViewGenErrorCode errorCode, string message, IEnumerable<
Cell
> sourceCells,
133
IEnumerable<
Cell
> sourceCells, string debugMessage)
135
m_sourceCells = new List<
Cell
>(sourceCells);
154
private List<
Cell
> m_sourceCells;
173
private static void GetUserLinesFromCells(IEnumerable<
Cell
> sourceCells, StringBuilder lineBuilder, bool isInvariant)
175
var orderedCells = sourceCells.OrderBy<
Cell
, int>(cell => cell.CellLabel.StartLineNumber, Comparer<int>.Default);
179
foreach (
Cell
cell in orderedCells)
195
List<
Cell
> sourceCells, string sourceLocation, ViewGenErrorCode errorCode,
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (8)
52
private HashSet<
Cell
> m_mergedCells; // Cells that this LeftCellWrapper (MergedCell) wraps.
69
CellQuery leftCellQuery, CellQuery rightCellQuery, MemberMaps memberMaps, IEnumerable<
Cell
> inputCells)
77
m_mergedCells = new HashSet<
Cell
>(inputCells);
82
CellQuery leftCellQuery, CellQuery rightCellQuery, MemberMaps memberMaps,
Cell
inputCell)
123
internal IEnumerable<
Cell
> Cells
130
internal
Cell
OnlyInputCell
176
internal static IEnumerable<
Cell
> GetInputCellsForWrappers(IEnumerable<LeftCellWrapper> wrappers)
180
foreach (
Cell
cell in wrapper.m_mergedCells)
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (5)
64
internal MemberDomainMap(ViewTarget viewTarget, bool isValidationEnabled, IEnumerable<
Cell
> extentCells, EdmItemCollection edmItemCollection, ConfigViewGenerator config, Dictionary<EntityType, Set<EntityType>> inheritanceGraph)
79
foreach (
Cell
cell in extentCells)
137
foreach (
Cell
cell in extentCells)
262
internal static void PropagateUpdateDomainToQueryDomain(IEnumerable<
Cell
> cells, MemberDomainMap queryDomainMap, MemberDomainMap updateDomainMap)
265
foreach (
Cell
cell in cells)
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (8)
94
foreach (
Cell
cell in fragment.Cells)
605
foreach (
Cell
cell in wrapper.Cells)
643
foreach (
var
anotherCell in anotherFragment.Cells)
758
private IEnumerable<
Cell
> ToIEnum(
Cell
one,
Cell
two)
760
List<
Cell
> cells = new List<
Cell
>();
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (25)
132
internal void CheckConstraint(Set<
Cell
> cells, QueryRewriter childRewriter, QueryRewriter parentRewriter,
255
IEnumerable<
Cell
> cells,
270
foreach (
Cell
cell in cells)
345
Set<
Cell
> cells, ErrorLog errorLog)
354
foreach (
Cell
cell in cells)
427
private bool CheckConstraintWhenOnlyParentMapped(
Cell
cell, EntitySet parentSet, AssociationSet assocSet, AssociationEndMember endMember,
451
private bool CheckConstraintWhenParentChildMapped(
Cell
cell, ErrorLog errorLog,
494
private bool CheckParentColumnsForForeignKey(
Cell
cell, IEnumerable<
Cell
> cells, AssociationEndMember parentEnd, ref List<ErrorLog.Record> errorList)
530
private static EntitySet FindEntitySetForColumnsMappedToEntityKeys(IEnumerable<
Cell
> cells, IEnumerable<MemberPath> tableColumns)
532
foreach (
Cell
cell in cells)
570
private static AssociationEndMember GetRelationEndForColumns(
Cell
cell, IEnumerable<MemberPath> columns)
640
private bool CheckForeignKeyColumnOrder(Set<
Cell
> cells, ErrorLog errorLog)
647
List<
Cell
> parentCells = new List<
Cell
>();
648
List<
Cell
> childCells = new List<
Cell
>();
650
foreach (
Cell
cell in cells)
671
foreach (
Cell
childCell in childCells)
682
Cell
errorParentCell = null;
698
foreach (
Cell
parentCell in parentCells)
782
ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ForeignKeyColumnOrderIncorrect, message, new
Cell
[] { errorParentCell, childCell }, String.Empty);
792
private static List<List<int>> GetSlotNumsForColumns(
Cell
cell, IEnumerable<MemberPath> columns)
854
private bool IsConstraintRelevantForCells(IEnumerable<
Cell
> cells)
859
foreach (
Cell
cell in cells)
System\Data\Mapping\ViewGeneration\Validation\ViewCellRelation.cs (3)
32
internal ViewCellRelation(
Cell
cell, List<ViewCellSlot> slots, int cellNumber)
45
private
Cell
m_cell; // The cell for which this relation exists
50
internal
Cell
Cell
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (1)
35
internal
Cell
Cell
System\Data\Mapping\ViewGeneration\Validator.cs (7)
35
internal CellGroupValidator(IEnumerable<
Cell
> cells, ConfigViewGenerator config)
44
private IEnumerable<
Cell
> m_cells;
129
foreach (
Cell
cell in m_cells)
143
foreach (
Cell
firstCell in m_cells)
145
foreach (
Cell
secondCell in m_cells)
283
foreach (
Cell
cell in m_cells)
318
foreach (
Cell
cell in m_cells)
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (15)
57
internal ViewgenContext(ViewTarget viewTarget, EntitySetBase extent, IEnumerable<
Cell
> extentCells,
61
foreach (
Cell
cell in extentCells)
290
private bool CreateLeftCellWrappers(IEnumerable<
Cell
> extentCells, ViewTarget viewTarget)
293
List<
Cell
> extentCellsList = new List<
Cell
>(extentCells);
294
List<
Cell
> alignedCells = AlignFields(extentCellsList, m_memberMaps.ProjectedSlotMap, viewTarget);
302
Cell
alignedCell = alignedCells[i];
332
private static List<
Cell
> AlignFields(IEnumerable<
Cell
> cells, MemberProjectionIndex projectedSlotMap,
336
List<
Cell
> outputCells = new List<
Cell
>();
340
foreach (
Cell
cell in cells)
360
Cell
outputCell = viewTarget == ViewTarget.QueryView ?
361
Cell
.CreateCS(newMainQuery, newOtherQuery, cell.CellLabel, cell.CellNumber) :
362
Cell
.CreateCS(newOtherQuery, newMainQuery, cell.CellLabel, cell.CellNumber);
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (14)
26
using CellGroup = Set<
Cell
>;
85
foreach (
Cell
cell in cellGroup)
115
Cell
.CellsToBuilder(builder, m_cellGroup);
175
Cell
.CellsToBuilder(builder, m_cellGroup);
206
foreach (
Cell
cell in m_cellGroup)
226
private static void UpdateWhereClauseForEachCell(IEnumerable<
Cell
> extentCells, MemberDomainMap queryDomainMap,
229
foreach (
Cell
cell in extentCells)
290
KeyToListMap<EntitySetBase,
Cell
> extentCellMap = GroupCellsByExtent(m_cellGroup, viewTarget);
491
private static KeyToListMap<EntitySetBase,
Cell
> GroupCellsByExtent(IEnumerable<
Cell
> cells, ViewTarget viewTarget)
496
KeyToListMap<EntitySetBase,
Cell
> extentCellMap =
497
new KeyToListMap<EntitySetBase,
Cell
>(EqualityComparer<EntitySetBase>.Default);
498
foreach (
Cell
cell in cells)
512
Cell
.CellsToBuilder(builder, m_cellGroup);
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (9)
23
using CellGroup = Set<
Cell
>;
47
List<
Cell
> cells = cellCreator.GenerateCells(config);
97
List<
Cell
> cells = result.Cells;
157
private static ViewGenResults GenerateViewsFromCells(List<
Cell
> cells, ConfigViewGenerator config,
220
private static ErrorLog EnsureAllCSpaceContainerSetsAreMapped(IEnumerable<
Cell
> cells,
230
foreach (
Cell
cell in cells)
273
Cell
smallestCell = null;
274
foreach (
Cell
cell in cells)
301
foreach (
Cell
cell in group)