System.Data.Common.CommandTrees.BasicExpressionVisitor.VisitRelatedEntityReferenceList(System.Collections.Generic.IList)

Here are the examples of the csharp api class System.Data.Common.CommandTrees.BasicExpressionVisitor.VisitRelatedEntityReferenceList(System.Collections.Generic.IList) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: referencesource
Source File: BasicExpressionVisitor.cs
public override void Visit(DbNewInstanceExpression expression)
        {
            // #433613: PreSharp warning 56506: Parameter 'expression' to this public method must be validated: A null-dereference can occur here.
            EntityUtil.CheckArgumentNull(expression, "expression");
            VisitExpressionList(expression.Arguments);
            if (expression.HasRelatedEntityReferences)
            {
                Debug.Assert(expression.RelatedEntityReferences != null, "HasRelatedEntityReferences returned true for null RelatedEntityReferences list?");
                this.VisitRelatedEntityReferenceList(expression.RelatedEntityReferences);
            }
        }