IConventionAnnotatableBuilder Interface

Definition

Provides a simple API surface for configuring an IConventionAnnotatable from conventions.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IConventionAnnotatableBuilder
type IConventionAnnotatableBuilder = interface
Public Interface IConventionAnnotatableBuilder
Derived

Remarks

See Model building conventions for more information.

Properties

Metadata

Gets the annotatable item being configured.

ModelBuilder

Gets the model builder.

Methods

CanRemoveAnnotation(String, Boolean)

Returns a value indicating whether an annotation with the given name can be removed using this configuration source.

CanSetAnnotation(String, Object, Boolean)

Returns a value indicating whether an annotation with the given name and value can be set from this configuration source.

HasAnnotation(String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists with same or lower ConfigurationSource.

HasNoAnnotation(String, Boolean)

Removes the annotation with the given name from this object.

HasNonNullAnnotation(String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists with same or lower ConfigurationSource. Removes the annotation if null value is specified.

RemoveAnnotation(String, Boolean)
Obsolete.

Removes the annotation with the given name from this object.

SetOrRemoveAnnotation(String, Object, Boolean)
Obsolete.

Sets or removes the annotation stored under the given name.

Applies to