src/Shared/EntityFramework/Core/Metadata/Edm/ItemCollection.cs
// <summary>
// Adds a collection of items to the collection
// </summary>
// <param name="items"> The items to add to the list </param>
// <exception cref="System.ArgumentNullException">Thrown if item argument is null</exception>
// <exception cref="System.InvalidOperationException">Thrown if the item passed in or the collection itself instance is in ReadOnly state</exception>
// <exception cref="System.ArgumentException">Thrown if the item that is being added already belongs to another ItemCollection</exception>
// <exception cref="System.ArgumentException">Thrown if the ItemCollection already contains an item with the same identity</exception>
Adds a collection of items to the collection
Adds a collection of items to the collection
internal void AddRange(List<GlobalItem> items)
        {
#if DEBUG
            foreach (var item in items)
            {
                Debug.Assert(item.IsReadOnly, "The item is not readonly, it should be by the time it is added to the item collection");
                Debug.Assert(item.DataSpace == DataSpace);
            }
#endif
            base.Source.AddRange(items);
        }
internal void AddRange ( List < GlobalItem > items ) { if DEBUG foreach ( var item in items ) { Debug . Assert ( item . IsReadOnly , " " ) ; Debug . Assert ( item . DataSpace == DataSpace ) ; } endif base . Source . AddRange ( items ) ; }
Adds a collection of items to the collection
Adds a collection of items to the collection
// We failed to add, so undo the setting of the ItemCollection reference
Thrown if item argument is null
Thrown if item argument is null
Thrown if the item passed in or the collection itself instance is in ReadOnly state
Thrown if the item passed in or the collection itself instance is in ReadOnly state
Thrown if the item that is being added already belongs to another ItemCollection
Thrown if the item that is being added already belongs to another ItemCollection
Thrown if the ItemCollection already contains an item with the same identity
Thrown if the ItemCollection already contains an item with the same identity
items
List<GlobalItem>
The items to add to the list
The items to add to the list