語言

AnnotationCodeGenerator 類別

定義

資料庫提供者在實作 IAnnotationCodeGenerator

[System.Runtime.CompilerServices.Nullable(0)]
public class AnnotationCodeGenerator : Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator
public class AnnotationCodeGenerator : Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator
[<System.Runtime.CompilerServices.Nullable(0)>]
type AnnotationCodeGenerator = class
    interface IAnnotationCodeGenerator
type AnnotationCodeGenerator = class
    interface IAnnotationCodeGenerator
Public Class AnnotationCodeGenerator
Implements IAnnotationCodeGenerator
繼承
AnnotationCodeGenerator
屬性
實作

備註

此實作會回傳 false 所有「IsHandledByConvention」方法及 null 所有「GenerateFluentApi」方法。 服務提供者應該覆蓋他們理解的註解。

更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。

建構函式

名稱 Description
AnnotationCodeGenerator(AnnotationCodeGeneratorDependencies)

初始化此類別的新實例。

屬性

名稱 Description
Dependencies

此服務的關聯提供者專屬相依關係。

方法

名稱 Description
FilterIgnoredAnnotations(IEnumerable<IAnnotation>)

過濾掉那些不該產生的註解 annotations 。

GenerateDataAnnotation(IEntityType, IAnnotation)

回傳給定 annotation的資料註解屬性片段,若 null 不存在資料註解則回傳。

GenerateDataAnnotation(IProperty, IAnnotation)

回傳給定 annotation的資料註解屬性片段,若 null 不存在資料註解則回傳。

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

對於具有對應資料註解屬性的註解,回傳這些屬性代碼片段並移除註解。

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

對於具有對應資料註解屬性的註解,回傳這些屬性代碼片段並移除註解。

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

對於具有對應資料註解屬性的註解,回傳這些屬性代碼片段並移除註解。

GenerateFluentApi(ICheckConstraint, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IComplexProperty, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IComplexType, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IEntityType, IAnnotation, String)
已淘汰.

除非被覆蓋以達成其他方式,否則會回傳 null 。

GenerateFluentApi(IEntityType, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IEntityTypeMappingFragment, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IForeignKey, IAnnotation, String)
已淘汰.

除非被覆蓋以達成其他方式,否則會回傳 null 。

GenerateFluentApi(IForeignKey, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IIndex, IAnnotation, String)
已淘汰.

除非被覆蓋以達成其他方式,否則會回傳 null 。

GenerateFluentApi(IIndex, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IKey, IAnnotation, String)
已淘汰.

除非被覆蓋以達成其他方式,否則會回傳 null 。

GenerateFluentApi(IKey, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IModel, IAnnotation, String)
已淘汰.

除非被覆蓋以達成其他方式,否則會回傳 null 。

GenerateFluentApi(IModel, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(INavigation, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IProperty, IAnnotation, String)
已淘汰.

除非被覆蓋以達成其他方式,否則會回傳 null 。

GenerateFluentApi(IProperty, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(IRelationalPropertyOverrides, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(ISequence, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(ISkipNavigation, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApi(ITrigger, IAnnotation)

回傳給定 annotation的流暢 API 呼叫,或 null 若不存在流暢 API 呼叫。

GenerateFluentApiCalls(IAnnotatable, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(ICheckConstraint, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IComplexProperty, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IComplexType, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IEntityType, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IEntityTypeMappingFragment, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IForeignKey, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IIndex, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IKey, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IModel, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(INavigation, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IProperty, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(IRelationalPropertyOverrides, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(ISequence, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(ISkipNavigation, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

GenerateFluentApiCalls(ITrigger, IDictionary<String,IAnnotation>)

對於包含相應流暢 API 呼叫的註解,回傳這些流暢 API 呼叫並移除註解。

IsHandledByConvention(ICheckConstraint, IAnnotation)

檢查當給定 annotation 應用於給定 checkConstraint時,是否依慣例處理。

IsHandledByConvention(IComplexProperty, IAnnotation)

檢查當給定 annotation 應用於給定 complexProperty時,是否依慣例處理。

IsHandledByConvention(IComplexType, IAnnotation)

檢查當給定 annotation 應用於給定 complexType時,是否依慣例處理。

IsHandledByConvention(IEntityType, IAnnotation)

檢查當給定 annotation 應用於給定 entityType時,是否依慣例處理。

IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation)

檢查當給定 annotation 應用於給定 fragment時,是否依慣例處理。

IsHandledByConvention(IForeignKey, IAnnotation)

檢查當給定 annotation 應用於給定 foreignKey時,是否依慣例處理。

IsHandledByConvention(IIndex, IAnnotation)

檢查當給定 annotation 應用於給定 index時,是否依慣例處理。

IsHandledByConvention(IKey, IAnnotation)

檢查當給定 annotation 應用於給定 key時,是否依慣例處理。

IsHandledByConvention(IModel, IAnnotation)

檢查當給定 annotation 應用於給定 model時,是否依慣例處理。

IsHandledByConvention(INavigation, IAnnotation)

檢查當給定 annotation 應用於給定 navigation時,是否依慣例處理。

IsHandledByConvention(IProperty, IAnnotation)

檢查當給定 annotation 應用於給定 property時,是否依慣例處理。

IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)

檢查當給定 annotation 應用於給定 overrides時,是否依慣例處理。

IsHandledByConvention(ISequence, IAnnotation)

檢查當給定 annotation 應用於給定 sequence時,是否依慣例處理。

IsHandledByConvention(ISkipNavigation, IAnnotation)

檢查當給定 annotation 應用於給定 navigation時,是否依慣例處理。

IsHandledByConvention(ITrigger, IAnnotation)

檢查當給定 annotation 應用於給定 trigger時,是否依慣例處理。

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>)

移除已依慣例套用且不需明確指定的註解。

適用於