语言

IAnnotationCodeGenerator 接口

定义

由数据库提供程序实现,以控制哪些批注需要生成代码(而不是由约定处理),然后根据需要生成代码。

public interface IAnnotationCodeGenerator
type IAnnotationCodeGenerator = interface
Public Interface IAnnotationCodeGenerator
派生

注解

服务生存期为 Singleton。 这意味着多个实例使用 DbContext 单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..

有关详细信息和示例,请参阅 数据库提供程序和扩展的实现 。

方法

名称 说明
FilterIgnoredAnnotations(IEnumerable<IAnnotation>)

筛选掉不应为其生成代码的批注 annotations 。

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

对于具有相应数据批注属性的给定批注,返回这些属性代码片段并删除批注。

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

对于具有相应数据批注属性的给定批注,返回这些属性代码片段并删除批注。

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

对于具有相应数据批注属性的给定批注,返回这些属性代码片段并删除批注。

GenerateFluentApi(IEntityType, IAnnotation, String)
已过时.

为给定编程语言中给定的给定 IAnnotation 生成 Fluent API 调用。

GenerateFluentApi(IEntityType, IAnnotation)

为给定 IAnnotation生成 fluent API 调用。

GenerateFluentApi(IForeignKey, IAnnotation, String)
已过时.

为给定编程语言中给定的给定 IAnnotation 生成 Fluent API 调用。

GenerateFluentApi(IForeignKey, IAnnotation)

为给定 IAnnotation生成 fluent API 调用。

GenerateFluentApi(IIndex, IAnnotation, String)
已过时.

为给定编程语言中给定的给定 IAnnotation 生成 Fluent API 调用。

GenerateFluentApi(IIndex, IAnnotation)

为给定 IAnnotation生成 fluent API 调用。

GenerateFluentApi(IKey, IAnnotation, String)
已过时.

为给定编程语言中给定的给定 IAnnotation 生成 Fluent API 调用。

GenerateFluentApi(IKey, IAnnotation)

为给定 IAnnotation生成 fluent API 调用。

GenerateFluentApi(IModel, IAnnotation, String)
已过时.

为给定编程语言中给定的给定 IAnnotation 生成 Fluent API 调用。

GenerateFluentApi(IModel, IAnnotation)

为给定 IAnnotation生成 fluent API 调用。

GenerateFluentApi(IProperty, IAnnotation, String)
已过时.

为给定编程语言中给定的给定 IAnnotation 生成 Fluent API 调用。

GenerateFluentApi(IProperty, IAnnotation)

为给定 IAnnotation生成 fluent API 调用。

GenerateFluentApiCalls(IAnnotatable, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(ICheckConstraint, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IComplexProperty, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IComplexType, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IEntityType, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IEntityTypeMappingFragment, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IForeignKey, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IIndex, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IKey, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IModel, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(INavigation, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IProperty, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(IRelationalPropertyOverrides, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(ISequence, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(ISkipNavigation, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

GenerateFluentApiCalls(ITrigger, IDictionary<String,IAnnotation>)

对于具有相应 fluent API 调用的给定批注,返回这些 fluent API 调用并删除批注。

IsHandledByConvention(IEntityType, IAnnotation)

检查给定在应用于给定IEntityType时是否IAnnotation由约定处理。

IsHandledByConvention(IForeignKey, IAnnotation)

检查给定在应用于给定IForeignKey时是否IAnnotation由约定处理。

IsHandledByConvention(IIndex, IAnnotation)

检查给定在应用于给定IIndex时是否IAnnotation由约定处理。

IsHandledByConvention(IKey, IAnnotation)

检查给定在应用于给定IKey时是否IAnnotation由约定处理。

IsHandledByConvention(IModel, IAnnotation)

检查给定在应用于给定IModel时是否IAnnotation由约定处理。

IsHandledByConvention(IProperty, IAnnotation)

检查给定在应用于给定IProperty时是否IAnnotation由约定处理。

RemoveAnnotationsHandledByConventions(IAnnotatable, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(ICheckConstraint, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IComplexProperty, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IComplexType, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IEntityType, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IEntityTypeMappingFragment, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IForeignKey, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IIndex, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IKey, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IModel, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(INavigation, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IProperty, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(IRelationalPropertyOverrides, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(ISequence, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(ISkipNavigation, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

RemoveAnnotationsHandledByConventions(ITrigger, IDictionary<String,IAnnotation>)

删除已按约定应用其配置的批注,无需显式指定。

适用于