80 references to ViewTarget
System.Data.Entity (80)
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (4)
99
if (m_viewgenContext.ViewTarget ==
ViewTarget
.QueryView)
629
bool isQueryView = (m_viewgenContext.ViewTarget ==
ViewTarget
.QueryView);
633
if (isDisjointLeft && m_viewgenContext.ViewTarget ==
ViewTarget
.QueryView)
641
if (m_viewgenContext.ViewTarget ==
ViewTarget
.UpdateView &&
System\Data\Mapping\ViewGeneration\CellCreator.cs (6)
154
if (TryCreateAdditionalCellWithCondition(cell, memberToExpand, true /*condition value*/,
ViewTarget
.UpdateView /*s-side member*/, out resultCell))
158
if (TryCreateAdditionalCellWithCondition(cell, memberToExpand, false /*condition value*/,
ViewTarget
.UpdateView /*s-side member*/, out resultCell))
168
if (TryCreateAdditionalCellWithCondition(cell, cMemberToExpand, true /*condition value*/,
ViewTarget
.QueryView /*c-side member*/, out resultCell))
173
if (TryCreateAdditionalCellWithCondition(cell, cMemberToExpand, false /*condition value*/,
ViewTarget
.QueryView /*c-side member*/, out resultCell))
193
private bool TryCreateAdditionalCellWithCondition(Cell originalCell, MemberPath memberToExpand, bool conditionValue,
ViewTarget
viewTarget, out Cell result)
251
if (viewTarget ==
ViewTarget
.UpdateView)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (15)
136
if (_context.ViewTarget ==
ViewTarget
.QueryView)
209
if (_context.ViewTarget ==
ViewTarget
.QueryView && MemberPath.EqualityComparer.Equals(currentPath, _extentPath))
240
case
ViewTarget
.UpdateView:
302
if (_context.ViewTarget ==
ViewTarget
.QueryView)
522
if (domainValue == Constant.Undefined && _context.ViewTarget ==
ViewTarget
.QueryView)
538
if (_context.ViewTarget ==
ViewTarget
.UpdateView)
556
Debug.Assert(_context.ViewTarget ==
ViewTarget
.UpdateView || !_config.IsValidationEnabled);
563
string objectString = _context.ViewTarget ==
ViewTarget
.QueryView ?
566
if (_context.ViewTarget ==
ViewTarget
.QueryView)
574
RewritingValidator.EntityConfigurationToUserString(memberConditionQuery.Condition, builder, _context.ViewTarget ==
ViewTarget
.UpdateView);
587
if (_context.ViewTarget ==
ViewTarget
.UpdateView && needCaseStatement)
604
Debug.Assert(_context.ViewTarget ==
ViewTarget
.UpdateView, "Used for update views only");
637
if (_context.ViewTarget ==
ViewTarget
.QueryView)
661
if (_context.ViewTarget ==
ViewTarget
.QueryView && _config.IsValidationEnabled)
834
bool isRelaxed = (_context.ViewTarget ==
ViewTarget
.UpdateView);
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (4)
153
internal CellQuery GetLeftQuery(
ViewTarget
side)
155
return side ==
ViewTarget
.QueryView ? m_cQuery : m_sQuery;
159
internal CellQuery GetRightQuery(
ViewTarget
side)
161
return side ==
ViewTarget
.QueryView ? m_sQuery : m_cQuery;
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (3)
333
ViewTarget
target = isCQuery ?
ViewTarget
.QueryView :
ViewTarget
.UpdateView;
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (4)
55
private
ViewTarget
m_viewTarget;
67
internal LeftCellWrapper(
ViewTarget
viewTarget, Set<MemberPath> attrs,
80
internal LeftCellWrapper(
ViewTarget
viewTarget, Set<MemberPath> attrs,
328
if (m_viewTarget ==
ViewTarget
.QueryView)
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (4)
64
internal MemberDomainMap(
ViewTarget
viewTarget, bool isValidationEnabled, IEnumerable<Cell> extentCells, EdmItemCollection edmItemCollection, ConfigViewGenerator config, Dictionary<EntityType, Set<EntityType>> inheritanceGraph)
70
if (viewTarget ==
ViewTarget
.UpdateView)
227
internal void ReduceEnumerableDomainToEnumeratedValues(
ViewTarget
target, ConfigViewGenerator config)
236
private static void ReduceEnumerableDomainToEnumeratedValues(
ViewTarget
target, Dictionary<MemberPath, CellConstantSet> domainMap, ConfigViewGenerator config,
System\Data\Mapping\ViewGeneration\Structures\MemberMaps.cs (4)
26
private
ViewTarget
m_viewTarget;
30
internal MemberMaps(
ViewTarget
viewTarget, MemberProjectionIndex projectedSlotMap,
67
return m_viewTarget ==
ViewTarget
.QueryView ? m_updateDomainMap : m_queryDomainMap;
75
return m_viewTarget ==
ViewTarget
.QueryView ? m_queryDomainMap : m_updateDomainMap;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (9)
50
Debug.Assert(context.ViewTarget ==
ViewTarget
.QueryView || context.Config.IsValidationEnabled);
52
if (context.ViewTarget ==
ViewTarget
.QueryView && !context.Config.IsValidationEnabled)
86
if (m_viewgenContext.ViewTarget ==
ViewTarget
.QueryView)
145
private static bool IsMemberPartOfNotNullCondition(IEnumerable<LeftCellWrapper> wrappers, MemberPath leftMember,
ViewTarget
viewTarget)
222
if (m_viewgenContext.ViewTarget ==
ViewTarget
.UpdateView)
285
CellQuery rightCellQuery = leftCellWrapper.OnlyInputCell.GetRightQuery(
ViewTarget
.QueryView);
294
CellQuery leftCellQuery = leftCellWrapper.OnlyInputCell.GetLeftQuery(
ViewTarget
.QueryView);
309
if (m_viewgenContext.ViewTarget ==
ViewTarget
.UpdateView && nonAssociationWrappers.Any())
768
return (m_viewgenContext.ViewTarget ==
ViewTarget
.QueryView);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (12)
29
private
ViewTarget
m_viewTarget;
57
internal ViewgenContext(
ViewTarget
viewTarget, EntitySetBase extent, IEnumerable<Cell> extentCells,
80
MemberDomainMap domainMap = viewTarget ==
ViewTarget
.QueryView ? queryDomainMap : updateDomainMap;
100
MemberDomainMap rightDomainMap = viewTarget ==
ViewTarget
.QueryView ? updateDomainMap : queryDomainMap;
108
if (m_viewTarget ==
ViewTarget
.UpdateView)
116
if (m_viewTarget ==
ViewTarget
.QueryView)
159
internal
ViewTarget
ViewTarget
248
Debug.Assert(m_viewTarget ==
ViewTarget
.QueryView);
290
private bool CreateLeftCellWrappers(IEnumerable<Cell> extentCells,
ViewTarget
viewTarget)
312
if (viewTarget ==
ViewTarget
.UpdateView)
333
ViewTarget
viewTarget)
360
Cell outputCell = viewTarget ==
ViewTarget
.QueryView ?
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (14)
67
m_queryDomainMap = new MemberDomainMap(
ViewTarget
.QueryView, m_config.IsValidationEnabled, cellGroup, entityContainerMapping.StorageMappingItemCollection.EdmItemCollection, m_config, inheritanceGraph);
68
m_updateDomainMap = new MemberDomainMap(
ViewTarget
.UpdateView, m_config.IsValidationEnabled, cellGroup, entityContainerMapping.StorageMappingItemCollection.EdmItemCollection, m_config, inheritanceGraph);
137
errorLog = GenerateDirectionalViews(
ViewTarget
.UpdateView, identifiers, views);
163
errorLog = GenerateDirectionalViews(
ViewTarget
.QueryView, identifiers, views);
237
queryDomainMap.ReduceEnumerableDomainToEnumeratedValues(
ViewTarget
.QueryView, config);
238
updateDomainMap.ReduceEnumerableDomainToEnumeratedValues(
ViewTarget
.UpdateView, config);
263
ViewgenContext context = CreateViewgenContext(entity,
ViewTarget
.QueryView, identifiers);
285
private ErrorLog GenerateDirectionalViews(
ViewTarget
viewTarget, CqlIdentifiers identifiers, ViewSet views)
287
bool isQueryView = viewTarget ==
ViewTarget
.QueryView;
313
if (viewTarget ==
ViewTarget
.UpdateView &&
346
private QueryRewriter GenerateDirectionalViewsForExtent(
ViewTarget
viewTarget, EntitySetBase extent, CqlIdentifiers identifiers, ViewSet views)
371
if (viewTarget ==
ViewTarget
.QueryView)
386
private ViewgenContext CreateViewgenContext(EntitySetBase extent,
ViewTarget
viewTarget, CqlIdentifiers identifiers)
491
private static KeyToListMap<EntitySetBase, Cell> GroupCellsByExtent(IEnumerable<Cell> cells,
ViewTarget
viewTarget)
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (1)
303
if (cell.GetLeftQuery(
ViewTarget
.QueryView).Extent.Equals(entity))