AnnotatableBuilder<TMetadata,TModelBuilder>.MergeAnnotationsFrom 方法

定义

重载

MergeAnnotationsFrom(TMetadata)

从给定对象复制所有显式配置的批注,覆盖任何现有批注。

MergeAnnotationsFrom(TMetadata, ConfigurationSource)

从给定对象复制所有配置的批注,覆盖任何现有批注。

MergeAnnotationsFrom(TMetadata)

从给定对象复制所有显式配置的批注,覆盖任何现有批注。

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)

参数

annotatable
TMetadata

要从中复制批注的对象。

返回

适用于

MergeAnnotationsFrom(TMetadata, ConfigurationSource)

从给定对象复制所有配置的批注,覆盖任何现有批注。

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)

参数

annotatable
TMetadata

要从中复制批注的对象。

minimalConfigurationSource
ConfigurationSource

要复制的批注的最小配置源。

返回

适用于