Share via


AnnotatableBuilder<TMetadata,TModelBuilder>.MergeAnnotationsFrom Method

Definition

Overloads

MergeAnnotationsFrom(TMetadata)

Copies all the explicitly configured annotations from the given object overwriting any existing ones.

MergeAnnotationsFrom(TMetadata, ConfigurationSource)

Copies all the configured annotations from the given object overwriting any existing ones.

MergeAnnotationsFrom(TMetadata)

Copies all the explicitly configured annotations from the given object overwriting any existing ones.

public virtual void MergeAnnotationsFrom (TMetadata annotatable);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<TMetadata,TModelBuilder> MergeAnnotationsFrom (TMetadata annotatable);
abstract member MergeAnnotationsFrom : 'Metadata -> unit
override this.MergeAnnotationsFrom : 'Metadata -> unit
abstract member MergeAnnotationsFrom : 'Metadata -> Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> Microsoft.EntityFrameworkCore.Infrastructure.ConventionAnnotatable and 'ModelBuilder :> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder)>
override this.MergeAnnotationsFrom : 'Metadata -> Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> Microsoft.EntityFrameworkCore.Infrastructure.ConventionAnnotatable and 'ModelBuilder :> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder)>
Public Overridable Sub MergeAnnotationsFrom (annotatable As TMetadata)
Public Overridable Function MergeAnnotationsFrom (annotatable As TMetadata) As AnnotatableBuilder(Of TMetadata, TModelBuilder)

Parameters

annotatable
TMetadata

The object to copy annotations from.

Returns

Applies to

MergeAnnotationsFrom(TMetadata, ConfigurationSource)

Copies all the configured annotations from the given object overwriting any existing ones.

public virtual void MergeAnnotationsFrom (TMetadata annotatable, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource minimalConfigurationSource);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<TMetadata,TModelBuilder> MergeAnnotationsFrom (TMetadata annotatable, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource minimalConfigurationSource);
abstract member MergeAnnotationsFrom : 'Metadata * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> unit
override this.MergeAnnotationsFrom : 'Metadata * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> unit
abstract member MergeAnnotationsFrom : 'Metadata * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> Microsoft.EntityFrameworkCore.Infrastructure.ConventionAnnotatable and 'ModelBuilder :> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder)>
override this.MergeAnnotationsFrom : 'Metadata * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> Microsoft.EntityFrameworkCore.Infrastructure.ConventionAnnotatable and 'ModelBuilder :> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder)>
Public Overridable Sub MergeAnnotationsFrom (annotatable As TMetadata, minimalConfigurationSource As ConfigurationSource)
Public Overridable Function MergeAnnotationsFrom (annotatable As TMetadata, minimalConfigurationSource As ConfigurationSource) As AnnotatableBuilder(Of TMetadata, TModelBuilder)

Parameters

annotatable
TMetadata

The object to copy annotations from.

minimalConfigurationSource
ConfigurationSource

The minimum configuration source for an annotation to be copied.

Returns

Applies to