19 instantiations of MemberProjectedSlot
System.Data.Entity (19)
System\Data\Mapping\ViewGeneration\CellCreator.cs (2)
393
cSlots.Add(new
MemberProjectedSlot
(cAttributeNode));
394
sSlots.Add(new
MemberProjectedSlot
(sAttributeNode));
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQuery.cs (2)
123
return BoolExpression.CreateLiteral(new TypeRestriction(new
MemberProjectedSlot
(path),
128
return BoolExpression.CreateLiteral(new ScalarRestriction(new
MemberProjectedSlot
(path),
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (3)
187
nullCondition = BoolExpression.CreateLiteral(new ScalarRestriction(new
MemberProjectedSlot
(childPath),
192
nullCondition = BoolExpression.CreateLiteral(new TypeRestriction(new
MemberProjectedSlot
(childPath),
212
BoolExpression typeCondition = BoolExpression.CreateLiteral(new TypeRestriction(new
MemberProjectedSlot
(currentPath), typeDomain), domainMap);
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (2)
326
domainQueryCondition = BoolExpression.CreateLiteral(new TypeRestriction(new
MemberProjectedSlot
(_extentPath), typeDomain), _domainMap);
363
projectedSlot = new
MemberProjectedSlot
(currentPath);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
547
slots.Add(new
MemberProjectedSlot
(SourceExtentMemberPath));
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
238
MemberProjectedSlot sSlot = new
MemberProjectedSlot
(new MemberPath(sRootNode, scalarPropertyMap.ColumnProperty));
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (2)
292
int projectedPosition = RightCellQuery.GetProjectedPosition(new
MemberProjectedSlot
(member));
310
int projectedPosition = LeftCellQuery.GetProjectedPosition(new
MemberProjectedSlot
(member));
System\Data\Mapping\ViewGeneration\Structures\MemberProjectedSlot.cs (2)
128
return new
MemberProjectedSlot
(remappedNode);
132
return new
MemberProjectedSlot
(MemberPath);
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (2)
35
: base(new
MemberProjectedSlot
(member), value)
44
: base(new
MemberProjectedSlot
(member), values, possibleValues)
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (2)
35
: base(new
MemberProjectedSlot
(member), CreateTypeConstants(values))
42
: base(new
MemberProjectedSlot
(member), value)
147 references to MemberProjectedSlot
System.Data.Entity (147)
System\Data\Mapping\ViewGeneration\CellCreator.cs (3)
125
var cSideMembers = cell.SQuery.GetProjectedPositions(sSideMemberToExpand).Select(pos => ((
MemberProjectedSlot
)cell.CQuery.ProjectedSlotAt(pos)).MemberPath);
205
MemberProjectedSlot
rightConditionMemberSlot = ((
MemberProjectedSlot
)originalCell.GetRightQuery(viewTarget).ProjectedSlotAt(indexOfBooLMemberInProjection));
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (8)
248
MemberProjectedSlot
slot = wrapper.RightCellQuery.ProjectedSlotAt(index) as
MemberProjectedSlot
;
287
MemberProjectedSlot
joinSlot = wrapper.GetCSideMappedSlotForSMember(member);
328
MemberProjectedSlot
projectedSlot = wrapper.GetCSideMappedSlotForSMember(member);
510
MemberProjectedSlot
thisSlot = thisQuery.ProjectedSlotAt(i) as
MemberProjectedSlot
;
513
MemberProjectedSlot
thatSlot = thatQuery.ProjectedSlotAt(i) as
MemberProjectedSlot
;
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (6)
117
if (m_elseValue is
MemberProjectedSlot
)
119
Debug.Assert(m_memberPath.Equals(((
MemberProjectedSlot
)m_elseValue).MemberPath), "case statement slot (ELSE) must depend only on its own slot value");
124
if (whenThen.Value is
MemberProjectedSlot
)
126
Debug.Assert(m_memberPath.Equals(((
MemberProjectedSlot
)whenThen.Value).MemberPath), "case statement slot (THEN) must depend only on its own slot value");
292
Debug.Assert(slot is
MemberProjectedSlot
|| slot is QualifiedSlot || slot is ConstantProjectedSlot,
320
Debug.Assert(slot is
MemberProjectedSlot
|| slot is QualifiedSlot || slot is ConstantProjectedSlot,
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (8)
136
MemberProjectedSlot
slot = projectedSlot as
MemberProjectedSlot
;
191
Debug.Assert(cSlot is
MemberProjectedSlot
, "cSlot is expected to be MemberProjectedSlot");
192
Debug.Assert(sSlot is
MemberProjectedSlot
, "sSlot is expected to be MemberProjectedSlot");
194
MemberProjectedSlot
cJoinSlot = (
MemberProjectedSlot
)cSlot;
195
MemberProjectedSlot
sJoinSlot = (
MemberProjectedSlot
)sSlot;
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (39)
210
KeyToListMap<
MemberProjectedSlot
, int> slotMap = new KeyToListMap<
MemberProjectedSlot
, int>(ProjectedSlot.EqualityComparer);
220
MemberProjectedSlot
slot = projectedSlot as
MemberProjectedSlot
;
230
foreach (
MemberProjectedSlot
slot in slotMap.Keys)
257
MemberProjectedSlot
cSlot = (
MemberProjectedSlot
)cQuery.m_projectedSlots[index];
307
MemberProjectedSlot
slot0 = (
MemberProjectedSlot
)m_projectedSlots[cSideSlotIndexes[0]];
308
MemberProjectedSlot
slot1 = (
MemberProjectedSlot
)m_projectedSlots[cSideSlotIndexes[1]];
326
MemberProjectedSlot
slot =
MemberProjectedSlot
.GetSlotForMember(m_projectedSlots, restriction.RestrictedMemberSlot.MemberPath);
346
if (
MemberProjectedSlot
.GetSlotForMember(associationCell.GetLeftQuery(target).ProjectedSlots, restriction.RestrictedMemberSlot.MemberPath) != null)
405
MemberProjectedSlot
slot = m_projectedSlots[i] as
MemberProjectedSlot
;
446
MemberProjectedSlot
projectedVar = projectedSlot as
MemberProjectedSlot
;
498
List<
MemberProjectedSlot
> keySlots =
MemberProjectedSlot
.GetKeySlots(GetMemberProjectedSlots(), prefix);
523
foreach (
MemberProjectedSlot
slot in this.GetMemberProjectedSlots())
530
private IEnumerable<
MemberProjectedSlot
> GetMemberProjectedSlots()
534
MemberProjectedSlot
memberSlot = slot as
MemberProjectedSlot
;
544
internal List<
MemberProjectedSlot
> GetAllQuerySlots()
546
HashSet<
MemberProjectedSlot
> slots = new HashSet<
MemberProjectedSlot
>(GetMemberProjectedSlots());
552
return new List<
MemberProjectedSlot
>(slots);
557
internal int GetProjectedPosition(
MemberProjectedSlot
slot)
561
if (
MemberProjectedSlot
.EqualityComparer.Equals(slot, m_projectedSlots[i]))
576
MemberProjectedSlot
slot = m_projectedSlots[i] as
MemberProjectedSlot
;
614
MemberProjectedSlot
slot = m_projectedSlots[i] as
MemberProjectedSlot
;
791
MemberProjectedSlot
slot = projectedSlot as
MemberProjectedSlot
;
802
List<
MemberProjectedSlot
> slots = GetAllQuerySlots();
897
MemberProjectedSlot
jtn = ps as
MemberProjectedSlot
;
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (6)
352
MemberProjectedSlot
slot = restriction.RestrictedMemberSlot;
373
private static bool GetRestrictedOrUnrestrictedDomain(
MemberProjectedSlot
slot, CellQuery cellQuery, EdmItemCollection edmItemCollection, out CellConstantSet domain)
400
foreach (
MemberProjectedSlot
sSlot in sQuery.GetConjunctsFromWhereClause().Select(oneOfConst => oneOfConst.RestrictedMemberSlot))
424
MemberProjectedSlot
cSlot = cQuery.ProjectedSlotAt(projectedPosition) as
MemberProjectedSlot
;
465
private static bool TryGetDomainRestrictedByWhereClause(IEnumerable<Constant> domain,
MemberProjectedSlot
slot, CellQuery cellQuery, out CellConstantSet result)
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
238
MemberProjectedSlot
sSlot = new MemberProjectedSlot(new MemberPath(sRootNode, scalarPropertyMap.ColumnProperty));
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (7)
278
MemberProjectedSlot
slot = (
MemberProjectedSlot
)rightQuery.ProjectedSlotAt(keySlot);
290
internal
MemberProjectedSlot
GetLeftSideMappedSlotForRightSideMember(MemberPath member)
305
return slot as
MemberProjectedSlot
;
308
internal
MemberProjectedSlot
GetRightSideMappedSlotForLeftSideMember(MemberPath member)
323
return slot as
MemberProjectedSlot
;
326
internal
MemberProjectedSlot
GetCSideMappedSlotForSMember(MemberPath member)
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (7)
142
foreach (
MemberProjectedSlot
slot in cellQuery.GetAllQuerySlots())
272
MemberProjectedSlot
cSlot = cQuery.ProjectedSlotAt(i) as
MemberProjectedSlot
;
273
MemberProjectedSlot
sSlot = sQuery.ProjectedSlotAt(i) as
MemberProjectedSlot
;
416
internal CellConstantSetInfo(Set<Constant> iconstants,
MemberProjectedSlot
islot)
422
internal
MemberProjectedSlot
slot;
System\Data\Mapping\ViewGeneration\Structures\MemberProjectedSlot.cs (14)
106
MemberProjectedSlot
rightSlot = right as
MemberProjectedSlot
;
123
internal
MemberProjectedSlot
RemapSlot(Dictionary<MemberPath, MemberPath> remap)
143
internal static List<
MemberProjectedSlot
> GetKeySlots(IEnumerable<
MemberProjectedSlot
> slots, MemberPath prefix)
153
List<
MemberProjectedSlot
> keySlots = GetSlots(slots, keys[0].KeyFields);
161
internal static List<
MemberProjectedSlot
> GetSlots(IEnumerable<
MemberProjectedSlot
> slots, IEnumerable<MemberPath> members)
163
List<
MemberProjectedSlot
> result = new List<
MemberProjectedSlot
>();
166
MemberProjectedSlot
slot = GetSlotForMember(Helpers.AsSuperTypeList<
MemberProjectedSlot
, ProjectedSlot>(slots), member);
179
internal static
MemberProjectedSlot
GetSlotForMember(IEnumerable<ProjectedSlot> slots, MemberPath member)
181
foreach (
MemberProjectedSlot
slot in slots)
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (10)
36
protected MemberRestriction(
MemberProjectedSlot
slot, Constant value)
43
protected MemberRestriction(
MemberProjectedSlot
slot, IEnumerable<Constant> values)
52
protected MemberRestriction(
MemberProjectedSlot
slot, Domain domain)
65
protected MemberRestriction(
MemberProjectedSlot
slot, IEnumerable<Constant> values, IEnumerable<Constant> possibleValues)
73
private readonly
MemberProjectedSlot
m_restrictedMemberSlot;
87
internal
MemberProjectedSlot
RestrictedMemberSlot
154
if (false ==
MemberProjectedSlot
.EqualityComparer.Equals(m_restrictedMemberSlot, rightRestriction.m_restrictedMemberSlot))
167
int result =
MemberProjectedSlot
.EqualityComparer.GetHashCode(m_restrictedMemberSlot);
186
return
MemberProjectedSlot
.EqualityComparer.Equals(m_restrictedMemberSlot, rightOneOfConst.m_restrictedMemberSlot);
194
int result =
MemberProjectedSlot
.EqualityComparer.GetHashCode(m_restrictedMemberSlot);
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (2)
539
MemberProjectedSlot
joinSlot = slot as
MemberProjectedSlot
;
System\Data\Mapping\ViewGeneration\Structures\ProjectedSlot.cs (4)
140
MemberProjectedSlot
memberSlot1 = slot1 as
MemberProjectedSlot
;
141
MemberProjectedSlot
memberSlot2 = slot2 as
MemberProjectedSlot
;
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (3)
50
internal ScalarRestriction(
MemberProjectedSlot
slot, Domain domain)
70
MemberProjectedSlot
newVar = (
MemberProjectedSlot
)this.RestrictedMemberSlot.RemapSlot(remap);
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (3)
50
internal TypeRestriction(
MemberProjectedSlot
slot, Domain domain)
69
MemberProjectedSlot
newVar = (
MemberProjectedSlot
)this.RestrictedMemberSlot.RemapSlot(remap);
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (5)
30
IEnumerable<
MemberProjectedSlot
> slots)
34
m_slots = new List<
MemberProjectedSlot
>(slots);
42
private List<
MemberProjectedSlot
> m_slots;
140
List<
MemberProjectedSlot
> keySlots =
MemberProjectedSlot
.GetSlots(m_slots, key.KeyFields);
System\Data\Mapping\ViewGeneration\Validation\BasicKeyConstraint.cs (3)
20
internal class BasicKeyConstraint : KeyConstraint<BasicCellRelation,
MemberProjectedSlot
>
25
internal BasicKeyConstraint(BasicCellRelation relation, IEnumerable<
MemberProjectedSlot
> keySlots)
39
foreach (
MemberProjectedSlot
keySlot in KeySlots)
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (2)
164
MemberPath rightmember = ((
MemberProjectedSlot
)rightCellQuery.ProjectedSlotAt(indexOfMemberInProjection)).MemberPath;
295
return ((
MemberProjectedSlot
)leftCellQuery.ProjectedSlotAt(firstProjectedPosition)).MemberPath;
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (4)
693
MemberProjectedSlot
childSlot = (
MemberProjectedSlot
)childCell.CQuery.ProjectedSlotAt(childSlotNum);
716
MemberProjectedSlot
parentSlot = (
MemberProjectedSlot
)parentCell.CQuery.ProjectedSlotAt(parentSlotNum);
System\Data\Mapping\ViewGeneration\Validation\ViewCellRelation.cs (1)
63
internal ViewCellSlot LookupViewSlot(
MemberProjectedSlot
slot)
System\Data\Mapping\ViewGeneration\Validation\ViewCellSlot.cs (11)
30
internal ViewCellSlot(int slotNum,
MemberProjectedSlot
cSlot,
MemberProjectedSlot
sSlot)
40
private readonly
MemberProjectedSlot
m_cSlot;
41
private readonly
MemberProjectedSlot
m_sSlot;
48
internal
MemberProjectedSlot
CSlot
56
internal
MemberProjectedSlot
SSlot
72
MemberProjectedSlot
.EqualityComparer.Equals(m_cSlot, rightSlot.m_cSlot) &&
73
MemberProjectedSlot
.EqualityComparer.Equals(m_sSlot, rightSlot.m_sSlot);
78
return
MemberProjectedSlot
.EqualityComparer.GetHashCode(m_cSlot) ^
79
MemberProjectedSlot
.EqualityComparer.GetHashCode(m_sSlot) ^
104
MemberProjectedSlot
actualSlot = isFromCside ? slot.CSlot : slot.SSlot;