src/Shared/EntityFramework/ModelConfiguration/Edm/MetadataPropertyExtensions.cs
// <summary>
// Copies annotations from one set of properties to another.
// </summary>
// <param name="sourceAnnotations">The source properties.</param>
// <param name="targetAnnotations">The target properties.</param>
Copies annotations from one set of properties to another.
Copies annotations from one set of properties to another .
public static void Copy(
            this ICollection<MetadataProperty> sourceAnnotations, ICollection<MetadataProperty> targetAnnotations)
        {
            DebugCheck.NotNull(sourceAnnotations);
            DebugCheck.NotNull(targetAnnotations);
            foreach (var annotation in sourceAnnotations)
            {
                targetAnnotations.SetAnnotation(annotation.Name, annotation.Value);
            }
        }
public static void Copy ( this ICollection < MetadataProperty > sourceAnnotations , ICollection < MetadataProperty > targetAnnotations ) { DebugCheck . NotNull ( sourceAnnotations ) ; DebugCheck . NotNull ( targetAnnotations ) ; foreach ( var annotation in sourceAnnotations ) { targetAnnotations . SetAnnotation ( annotation . Name , annotation . Value ) ; } }
Copies annotations from one set of properties to another.
Copies annotations from one set of properties to another .
ICollection<MetadataProperty>
this
targetAnnotations
ICollection<MetadataProperty>
The target properties.
The target properties .
sourceAnnotations
The source properties.
The source properties .