src/Shared/EntityFramework/Core/Metadata/Edm/EntitySetBaseCollection.cs
// <summary>
// Checks if the given entity set already has a entity container, if so, throw an exception
// </summary>
// <param name="entitySet"> The entity set to check for </param>
// <param name="argumentName"> The name of the argument from the caller </param>
Checks if the given entity set already has a entity container, if so, throw an exception
Checks if the given entity set already has a entity container if so throw an exception
private static void ThrowIfItHasEntityContainer(EntitySetBase entitySet, string argumentName)
        {
            Check.NotNull(entitySet, argumentName);
            if (entitySet.EntityContainer != null)
            {
                throw new ArgumentException(Strings.EntitySetInAnotherContainer, argumentName);
            }
        }
private static void ThrowIfItHasEntityContainer ( EntitySetBase entitySet , string argumentName ) { Check . NotNull ( entitySet , argumentName ) ; if ( entitySet . EntityContainer != null ) { throw new ArgumentException ( Strings . EntitySetInAnotherContainer , argumentName ) ; } }
Checks if the given entity set already has a entity container, if so, throw an exception
Checks if the given entity set already has a entity container if so throw an exception
entitySet
EntitySetBase
The entity set to check for
The entity set to check for
argumentName
string
The name of the argument from the caller
The name of the argument from the caller