src/Shared/EntityFramework/Core/Mapping/Update/Internal/ViewLoader.cs
// <summary>
// Yields all members appearing in function mapping result bindings.
// </summary>
// <param name="entitySetMapping"> Set mapping to examine </param>
// <returns> All result bindings </returns>
Yields all members appearing in function mapping result bindings.
Yields all members appearing in function mapping result bindings .
private static IEnumerable<EdmMember> GetMembersWithResultBinding(EntitySetMapping entitySetMapping)
        {
            foreach (var typeFunctionMapping in entitySetMapping.ModificationFunctionMappings)
            {
                if (null != typeFunctionMapping.InsertFunctionMapping
                    && null != typeFunctionMapping.InsertFunctionMapping.ResultBindings)
                {
                    foreach (var binding in typeFunctionMapping.InsertFunctionMapping.ResultBindings)
                    {
                        yield return binding.Property;
                    }
                }
                if (null != typeFunctionMapping.UpdateFunctionMapping
                    && null != typeFunctionMapping.UpdateFunctionMapping.ResultBindings)
                {
                    foreach (var binding in typeFunctionMapping.UpdateFunctionMapping.ResultBindings)
                    {
                        yield return binding.Property;
                    }
                }
            }
        }
private static IEnumerable < EdmMember > GetMembersWithResultBinding ( EntitySetMapping entitySetMapping ) { foreach ( var typeFunctionMapping in entitySetMapping . ModificationFunctionMappings ) { if ( null != typeFunctionMapping . InsertFunctionMapping && null != typeFunctionMapping . InsertFunctionMapping . ResultBindings ) { foreach ( var binding in typeFunctionMapping . InsertFunctionMapping . ResultBindings ) { yield return binding . Property ; } } if ( null != typeFunctionMapping . UpdateFunctionMapping && null != typeFunctionMapping . UpdateFunctionMapping . ResultBindings ) { foreach ( var binding in typeFunctionMapping . UpdateFunctionMapping . ResultBindings ) { yield return binding . Property ; } } } }
Yields all members appearing in function mapping result bindings.
Yields all members appearing in function mapping result bindings .
// look at all result bindings for insert and update commands
All result bindings
All result bindings
entitySetMapping
EntitySetMapping
Set mapping to examine
Set mapping to examine