Table of Contents

MergeMetadata Method

Definition

Namespace
Savvyio
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/MetadataExtensions.cs

MergeMetadata<TSource, TDestination>(TDestination, TSource)

Copies model from the source to the destination if not already existing.

public static TDestination MergeMetadata<TSource, TDestination>(this TDestination destination, TSource source) where TSource : IMetadata where TDestination : IMetadata

Parameters

destination TDestination

The IMetadata to extend. Receives model from source.

source TSource

The model that will give metadata to destination.

Returns

TDestination

A reference to destination after the operation has completed.

Type Parameters

TSource

The giving type of the model that implements the IMetadata interface.

TDestination

The receiving type of the model that implements the IMetadata interface.