1 write to _context
System.Data.Entity (1)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (1)
82
_context
= context;
47 references to _context
System.Data.Entity (47)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (47)
92
foreach (LeftCellWrapper leftCellWrapper in
_context
.AllWrappersForExtent)
136
if (
_context
.ViewTarget == ViewTarget.QueryView)
147
_context
.MemberMaps.ProjectedSlotMap, _usedCells,
148
_domainQuery,
_context
, _domainMap, _errorLog, _config);
153
bool noWhereClauseNeeded =
_context
.LeftFragmentQP.IsContainedIn(_basicView.LeftFragmentQuery, _domainQuery);
171
get { return
_context
; }
209
if (
_context
.ViewTarget == ViewTarget.QueryView && MemberPath.EqualityComparer.Equals(currentPath, _extentPath))
221
types = MetadataHelper.GetTypeAndSubtypesOf(_generatedType,
_context
.EdmItemCollection, false /* don't include abstract types */);
238
switch (
_context
.ViewTarget)
279
CellTreeNode cellTree = TileToCellTree((Tile<FragmentQuery>)caseRewriting,
_context
);
302
if (
_context
.ViewTarget == ViewTarget.QueryView)
322
derivedTypes = MetadataHelper.GetTypeAndSubtypesOf(generatedType,
_context
.EdmItemCollection, false /* don't include abstract types */);
408
if (!ErrorPatternMatcher.FindMappingErrors(
_context
, _domainMap, _errorLog))
425
ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.AmbiguousMultiConstants, builder.ToString(),
_context
.AllWrappersForExtent, String.Empty);
488
ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.AttributesUnrecoverable, builder.ToString(),
_context
.AllWrappersForExtent, String.Empty);
498
IEnumerable<LeftCellWrapper> usedCells =
_context
.AllWrappersForExtent.Where(w => _usedViews.Contains(w.FragmentQuery));
500
_context
, CellTreeOpType.Union,
501
usedCells.Select(wrapper => new LeafCellTreeNode(
_context
, wrapper)).ToArray());
522
if (domainValue == Constant.Undefined &&
_context
.ViewTarget == ViewTarget.QueryView)
538
if (
_context
.ViewTarget == ViewTarget.UpdateView)
556
Debug.Assert(
_context
.ViewTarget == ViewTarget.UpdateView || !_config.IsValidationEnabled);
559
if (!ErrorPatternMatcher.FindMappingErrors(
_context
, _domainMap, _errorLog))
563
string objectString =
_context
.ViewTarget == ViewTarget.QueryView ?
566
if (
_context
.ViewTarget == ViewTarget.QueryView)
574
RewritingValidator.EntityConfigurationToUserString(memberConditionQuery.Condition, builder,
_context
.ViewTarget == ViewTarget.UpdateView);
575
ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.AmbiguousMultiConstants, builder.ToString(),
_context
.AllWrappersForExtent, String.Empty);
587
if (
_context
.ViewTarget == ViewTarget.UpdateView && needCaseStatement)
604
Debug.Assert(
_context
.ViewTarget == ViewTarget.UpdateView, "Used for update views only");
612
CellTreeNode unionTree = TileToCellTree(unionCaseRewriting,
_context
);
613
FragmentQuery configurationNeedsDefault =
_context
.RightFragmentQP.Difference(rightDomainQuery.RightFragmentQuery, unionTree.RightFragmentQuery);
615
if (
_context
.RightFragmentQP.IsSatisfiable(configurationNeedsDefault))
627
_errorLog.AddEntry(new ErrorLog.Record(true, ViewGenErrorCode.NoDefaultValue, builder.ToString(),
_context
.AllWrappersForExtent, String.Empty));
637
if (
_context
.ViewTarget == ViewTarget.QueryView)
661
if (
_context
.ViewTarget == ViewTarget.QueryView && _config.IsValidationEnabled)
678
foreach (MemberPath memberPath in
_context
.MemberMaps.ProjectedSlotMap.Members)
688
foreach (LeftCellWrapper leftCellWrapper in
_context
.AllWrappersForExtent)
720
LeftCellWrapper fragment =
_context
.AllWrappersForExtent.First(lcr => lcr.FragmentQuery.Equals(toFill.Query));
744
foreach (LeftCellWrapper leftCellWrapper in
_context
.AllWrappersForExtent)
783
for (int memberNum = 0; memberNum <
_context
.MemberMaps.ProjectedSlotMap.Count; memberNum++)
785
MemberPath memberPath =
_context
.MemberMaps.ProjectedSlotMap[memberNum];
834
bool isRelaxed = (
_context
.ViewTarget == ViewTarget.UpdateView);
847
if (
_context
.TryGetCachedRewriting(toFillQuery, out rewriting))
891
_context
.SetCachedRewriting(originalToFillQuery, rewriting);
912
_context
.SetCachedRewriting(originalToFillQuery, rewriting);
926
if (!
_context
.TryGetCachedRewriting(toFill.Query, out rewriting))
932
_context
.SetCachedRewriting(toFill.Query, rewriting);
1263
return !
_context
.LeftFragmentQP.IsSatisfiable(FragmentQuery.Create(BoolExpression.CreateNot(query.Condition)));