AnnotationCodeGenerator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class to be used by database providers when implementing an IAnnotationCodeGenerator
public class AnnotationCodeGenerator : Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator
type AnnotationCodeGenerator = class
interface IAnnotationCodeGenerator
Public Class AnnotationCodeGenerator
Implements IAnnotationCodeGenerator
- Inheritance
-
AnnotationCodeGenerator
- Implements
Remarks
This implementation returns false
for all 'IsHandledByConvention' methods and null
for all 'GenerateFluentApi' methods. Providers should override for the annotations that they understand.
See Implementation of database providers and extensions for more information and examples.
Constructors
AnnotationCodeGenerator(AnnotationCodeGeneratorDependencies) |
Initializes a new instance of this class. |
Properties
Dependencies |
Relational provider-specific dependencies for this service. |
Methods
FilterIgnoredAnnotations(IEnumerable<IAnnotation>) |
Filters out annotations in |
GenerateDataAnnotation(IEntityType, IAnnotation) |
Returns a data annotation attribute code fragment for the given |
GenerateDataAnnotation(IProperty, IAnnotation) |
Returns a data annotation attribute code fragment for the given |
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(ICheckConstraint, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IComplexProperty, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IComplexType, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IEntityType, IAnnotation, String) |
Obsolete.
Returns |
GenerateFluentApi(IEntityType, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IEntityTypeMappingFragment, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IForeignKey, IAnnotation, String) |
Obsolete.
Returns |
GenerateFluentApi(IForeignKey, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IIndex, IAnnotation, String) |
Obsolete.
Returns |
GenerateFluentApi(IIndex, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IKey, IAnnotation, String) |
Obsolete.
Returns |
GenerateFluentApi(IKey, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IModel, IAnnotation, String) |
Obsolete.
Returns |
GenerateFluentApi(IModel, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(INavigation, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IProperty, IAnnotation, String) |
Obsolete.
Returns |
GenerateFluentApi(IProperty, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(IRelationalPropertyOverrides, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(ISequence, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(ISkipNavigation, IAnnotation) |
Returns a fluent API call for the given |
GenerateFluentApi(ITrigger, IAnnotation) |
Returns a fluent API call for the given |
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(ICheckConstraint, IAnnotation) |
Checks if the given |
IsHandledByConvention(IComplexProperty, IAnnotation) |
Checks if the given |
IsHandledByConvention(IComplexType, IAnnotation) |
Checks if the given |
IsHandledByConvention(IEntityType, IAnnotation) |
Checks if the given |
IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation) |
Checks if the given |
IsHandledByConvention(IForeignKey, IAnnotation) |
Checks if the given |
IsHandledByConvention(IIndex, IAnnotation) |
Checks if the given |
IsHandledByConvention(IKey, IAnnotation) |
Checks if the given |
IsHandledByConvention(IModel, IAnnotation) |
Checks if the given |
IsHandledByConvention(INavigation, IAnnotation) |
Checks if the given |
IsHandledByConvention(IProperty, IAnnotation) |
Checks if the given |
IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation) |
Checks if the given |
IsHandledByConvention(ISequence, IAnnotation) |
Checks if the given |
IsHandledByConvention(ISkipNavigation, IAnnotation) |
Checks if the given |
IsHandledByConvention(ITrigger, IAnnotation) |
Checks if the given |
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. |