Compartilhar via


IAnnotationCodeGenerator Interface

Definition

Implemented by database providers to control which annotations need to have code generated (as opposed to being handled by convention) and then to generate the code if needed.

public interface IAnnotationCodeGenerator
type IAnnotationCodeGenerator = interface
Public Interface IAnnotationCodeGenerator
Derived

Remarks

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

See Implementation of database providers and extensions for more information and examples.

Methods

FilterIgnoredAnnotations(IEnumerable<IAnnotation>)

Filters out annotations in annotations for which code should never be generated.

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding data annotation attributes, returns those attribute code fragments and removes the annotations.

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding data annotation attributes, returns those attribute code fragments and removes the annotations.

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding data annotation attributes, returns those attribute code fragments and removes the annotations.

GenerateFluentApi(IEntityType, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IEntityType, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IForeignKey, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IForeignKey, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IIndex, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IIndex, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IKey, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IKey, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IModel, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IModel, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IProperty, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IProperty, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApiCalls(IAnnotatable, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(ICheckConstraint, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IComplexProperty, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IComplexType, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IEntityType, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IEntityTypeMappingFragment, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IForeignKey, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IIndex, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IKey, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IModel, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(INavigation, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IProperty, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(IRelationalPropertyOverrides, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(ISequence, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(ISkipNavigation, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

GenerateFluentApiCalls(ITrigger, IDictionary<String,IAnnotation>)

For the given annotations which have corresponding fluent API calls, returns those fluent API calls and removes the annotations.

IsHandledByConvention(IEntityType, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IEntityType.

IsHandledByConvention(IForeignKey, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IForeignKey.

IsHandledByConvention(IIndex, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IIndex.

IsHandledByConvention(IKey, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IKey.

IsHandledByConvention(IModel, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IModel.

IsHandledByConvention(IProperty, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IProperty.

RemoveAnnotationsHandledByConventions(IAnnotatable, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(ICheckConstraint, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IComplexProperty, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IComplexType, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IEntityType, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IEntityTypeMappingFragment, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IForeignKey, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IIndex, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IKey, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IModel, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(INavigation, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IProperty, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(IRelationalPropertyOverrides, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(ISequence, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(ISkipNavigation, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

RemoveAnnotationsHandledByConventions(ITrigger, IDictionary<String,IAnnotation>)

Removes annotation whose configuration is already applied by convention, and do not need to be specified explicitly.

Applies to