src/Shared/EntityFramework/Core/Query/InternalTrees/NewRecordOp.cs
// <summary>
// Determine if a value has been provided for the specified field.
// Returns the position of this field (ie) the specific argument in the Node's
// children. If no value has been provided for this field, then simply
// return false
// </summary>
Determine if a value has been provided for the specified field.
Returns the position of this field (ie) the specific argument in the Node's
children. If no value has been provided for this field, then simply
return false
Determine if a value has been provided for the specified field . Returns the position of this field ( ie ) the specific argument in the Node ' s children . If no value has been provided for this field then simply return false
internal bool GetFieldPosition(EdmProperty field, out int fieldPosition)
        {
            Debug.Assert(
                ReferenceEquals(field.DeclaringType, Type.EdmType),
                "attempt to get invalid field from this record type");
            fieldPosition = 0;
            for (var i = 0; i < m_fields.Count; i++)
            {
                if (m_fields[i] == field)
                {
                    fieldPosition = i;
                    return true;
                }
            }
            return false;
        }
internal bool GetFieldPosition ( EdmProperty field , out int fieldPosition ) { Debug . Assert ( ReferenceEquals ( field . DeclaringType , Type . EdmType ) , " " ) ; fieldPosition = 0 ; for ( var i = 0 ; i < m_fields . Count ; i ++ ) { if ( m_fields [ i ] == field ) { fieldPosition = i ; return true ; } } return false ; }
Determine if a value has been provided for the specified field.
Determine if a value has been provided for the specified field .
field
EdmProperty
int
out