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