src/Shared/EntityFramework/Core/Metadata/Edm/EdmValidator.cs
// <summary>
// Validate a collection of items in a batch
// </summary>
// <param name="items"> A collection of items to validate </param>
// <param name="ospaceErrors"> List of validation errors that were previously collected by the caller. if it encounters more errors, it adds them to this list of errors </param>
Validate a collection of items in a batch
Validate a collection of items in a batch
public void Validate<T>(IEnumerable<T> items, List<EdmItemError> ospaceErrors)
            where T : EdmType 
        {
            Check.NotNull(items, "items");
            Check.NotNull(items, "items");
            var validatedItems = new HashSet<MetadataItem>();
            foreach (MetadataItem item in items)
            {
                InternalValidate(item, ospaceErrors, validatedItems);
            }
        }
public void Validate < T > ( IEnumerable < T > items , List < EdmItemError > ospaceErrors ) where T : EdmType { Check . NotNull ( items , " " ) ; Check . NotNull ( items , " " ) ; var validatedItems = new HashSet < MetadataItem > ( ) ; foreach ( MetadataItem item in items ) { InternalValidate ( item , ospaceErrors , validatedItems ) ; } }
Validate a collection of items in a batch
Validate a collection of items in a batch
// O-Space only supports EdmType // Just call the internal helper method for each item
items
IEnumerable<T>
A collection of items to validate
A collection of items to validate
ospaceErrors
List<EdmItemError>
List of validation errors that were previously collected by the caller. if it encounters more errors, it adds them to this list of errors
List of validation errors that were previously collected by the caller . if it encounters more errors it adds them to this list of errors