# Class NpgsqlAnnotationCodeGenerator

Namespace
  Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public class NpgsqlAnnotationCodeGenerator : AnnotationCodeGenerator, IAnnotationCodeGenerator

Inheritance
  object
  AnnotationCodeGenerator
  NpgsqlAnnotationCodeGenerator

Implements
  IAnnotationCodeGenerator

Inherited Members
  AnnotationCodeGenerator.FilterIgnoredAnnotations(IEnumerable<IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IModel, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IEntityType, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IComplexType, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IEntityTypeMappingFragment, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IProperty, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IComplexProperty, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IKey, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IForeignKey, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(INavigation, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(ISkipNavigation, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IIndex, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(ICheckConstraint, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(ITrigger, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IRelationalPropertyOverrides, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(ISequence, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.RemoveAnnotationsHandledByConventions(IAnnotatable, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(IEntityType, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(IComplexType, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(IEntityTypeMappingFragment, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(IComplexProperty, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(IKey, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(IForeignKey, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(INavigation, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(ISkipNavigation, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(IIndex, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(ICheckConstraint, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(ITrigger, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(IRelationalPropertyOverrides, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(ISequence, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateFluentApiCalls(IAnnotatable, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateDataAnnotationAttributes(IEntityType, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateDataAnnotationAttributes(IProperty, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<string, IAnnotation>)
  AnnotationCodeGenerator.IsHandledByConvention(IEntityType, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(IComplexType, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(IKey, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(IComplexProperty, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(IForeignKey, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(INavigation, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(ISkipNavigation, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(ICheckConstraint, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(ITrigger, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)
  AnnotationCodeGenerator.IsHandledByConvention(ISequence, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(IComplexType, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(IEntityTypeMappingFragment, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(IKey, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(IProperty, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(IComplexProperty, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(IForeignKey, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(INavigation, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(ISkipNavigation, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(ICheckConstraint, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(ITrigger, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(IRelationalPropertyOverrides, IAnnotation)
  AnnotationCodeGenerator.GenerateFluentApi(ISequence, IAnnotation)
  AnnotationCodeGenerator.GenerateDataAnnotation(IEntityType, IAnnotation)
  AnnotationCodeGenerator.GenerateDataAnnotation(IProperty, IAnnotation)
  AnnotationCodeGenerator.Dependencies
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### NpgsqlAnnotationCodeGenerator(AnnotationCodeGeneratorDependencies)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public NpgsqlAnnotationCodeGenerator(AnnotationCodeGeneratorDependencies dependencies)

#### Parameters

`dependencies` AnnotationCodeGeneratorDependencies

## Methods

### GenerateFluentApi(IEntityType, IAnnotation)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    protected override MethodCallCodeFragment? GenerateFluentApi(IEntityType entityType, IAnnotation annotation)

#### Parameters

`entityType` IEntityType
`annotation` IAnnotation

#### Returns

MethodCallCodeFragment

### GenerateFluentApi(IIndex, IAnnotation)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    protected override MethodCallCodeFragment? GenerateFluentApi(IIndex index, IAnnotation annotation)

#### Parameters

`index` IIndex
`annotation` IAnnotation

#### Returns

MethodCallCodeFragment

### GenerateFluentApi(IModel, IAnnotation)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    protected override MethodCallCodeFragment? GenerateFluentApi(IModel model, IAnnotation annotation)

#### Parameters

`model` IModel
`annotation` IAnnotation

#### Returns

MethodCallCodeFragment

### GenerateFluentApiCalls(IModel, IDictionary<string, IAnnotation>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public override IReadOnlyList<MethodCallCodeFragment> GenerateFluentApiCalls(IModel model, IDictionary<string, IAnnotation> annotations)

#### Parameters

`model` IModel
`annotations` IDictionary<string, IAnnotation>

#### Returns

IReadOnlyList<MethodCallCodeFragment>

### GenerateFluentApiCalls(IProperty, IDictionary<string, IAnnotation>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public override IReadOnlyList<MethodCallCodeFragment> GenerateFluentApiCalls(IProperty property, IDictionary<string, IAnnotation> annotations)

#### Parameters

`property` IProperty
`annotations` IDictionary<string, IAnnotation>

#### Returns

IReadOnlyList<MethodCallCodeFragment>

### IsHandledByConvention(IIndex, IAnnotation)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    protected override bool IsHandledByConvention(IIndex index, IAnnotation annotation)

#### Parameters

`index` IIndex
`annotation` IAnnotation

#### Returns

bool

### IsHandledByConvention(IModel, IAnnotation)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    protected override bool IsHandledByConvention(IModel model, IAnnotation annotation)

#### Parameters

`model` IModel
`annotation` IAnnotation

#### Returns

bool

### IsHandledByConvention(IProperty, IAnnotation)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    protected override bool IsHandledByConvention(IProperty property, IAnnotation annotation)

#### Parameters

`property` IProperty
`annotation` IAnnotation

#### Returns

bool