src/Shared/EntityFramework/Core/Mapping/ViewGeneration/Structures/MemberRestriction.cs
// <summary>
// Returns a boolean expression that is domain-aware and ready for optimizations etc.
// </summary>
// <param name="domainMap"> Maps members to the values that each member can take; it can be null in which case the possible and actual values are the same. </param>
Returns a boolean expression that is domain-aware and ready for optimizations etc.
Returns a boolean expression that is domain - aware and ready for optimizations etc .
internal override DomainBoolExpr GetDomainBoolExpression(MemberDomainMap domainMap)
        {
            DomainTermExpr result;
            if (domainMap != null)
            {
                var domain = domainMap.GetDomain(m_restrictedMemberSlot.MemberPath);
                result = MakeTermExpression(this, domain, m_domain.Values);
            }
            else
            {
                result = MakeTermExpression(this, m_domain.AllPossibleValues, m_domain.Values);
            }
            return result;
        }
internal override DomainBoolExpr GetDomainBoolExpression ( MemberDomainMap domainMap ) { DomainTermExpr result ; if ( domainMap != null ) { var domain = domainMap . GetDomain ( m_restrictedMemberSlot . MemberPath ) ; result = MakeTermExpression ( this , domain , m_domain . Values ) ; } else { result = MakeTermExpression ( this , m_domain . AllPossibleValues , m_domain . Values ) ; } return result ; }
Returns a boolean expression that is domain-aware and ready for optimizations etc.
Returns a boolean expression that is domain - aware and ready for optimizations etc .
// Get the variable name from the slot's memberpath and the possible domain values from the slot // Look up the domain from the domainMap
domainMap
MemberDomainMap
Maps members to the values that each member can take; it can be null in which case the possible and actual values are the same.
Maps members to the values that each member can take ; it can be null in which case the possible and actual values are the same .