IReadOnlyElementType Interface

Definition

Represents the elements of a collection property.

public interface IReadOnlyElementType : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IReadOnlyElementType = interface
    interface IReadOnlyAnnotatable
Public Interface IReadOnlyElementType
Implements IReadOnlyAnnotatable
Derived
Implements

Remarks

See Modeling entity types and relationships for more information and examples.

Properties

ClrType

The type of elements in the collection.

CollectionProperty

Gets the collection property for which this represents the element.

IsNullable

Gets a value indicating whether elements of the collection can be null.

Item[String]

Gets the value of the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)

Methods

AnnotationsToDebugString(Int32)

Gets the debug string for all annotations declared on the object.

(Inherited from IReadOnlyAnnotatable)
FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
FindTypeMapping()

Returns the type mapping for elements of the collection.

GetAnnotation(String)

Gets the annotation with the given name, throwing if it does not exist.

(Inherited from IReadOnlyAnnotatable)
GetAnnotations()

Gets all annotations on the current object.

(Inherited from IReadOnlyAnnotatable)
GetJsonValueReaderWriter()

Gets the type of JsonValueReaderWriter<TValue> to use for elements of the collection.

GetMaxLength()

Gets the maximum length of data that is allowed in elements of the collection. For example, if the element type is a String then this is the maximum number of characters.

GetPrecision()

Gets the precision of data that is allowed in elements of the collection. For example, if the element type is a Decimal, then this is the maximum number of digits.

GetProviderClrType()

Gets the type that the elements of the collection will be converted to before being sent to the database provider.

GetScale()

Gets the scale of data that is allowed in this elements of the collection. For example, if the element type is a Decimal, then this is the maximum number of decimal places.

GetTypeMapping()

Returns the CoreTypeMapping for the elements of the collection from a finalized model.

GetValueComparer()

Gets the custom ValueComparer for elements of the collection.

GetValueConverter()

Gets the custom ValueConverter for this elements of the collection.

IsUnicode()

Gets a value indicating whether elements of the collection can persist Unicode characters.

ToDebugString(MetadataDebugStringOptions, Int32)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

Extension Methods

FindRelationalTypeMapping(IReadOnlyElementType)

Returns the RelationalTypeMapping for the given element on a finalized model.

GetRelationalTypeMapping(IReadOnlyElementType)

Returns the RelationalTypeMapping for the given element on a finalized model.

GetStoreType(IReadOnlyElementType)

Returns the database type of the elements, or null if the database type could not be found.

IsFixedLength(IReadOnlyElementType)

Returns a flag indicating whether the elements are capable of storing only fixed-length data, such as strings.

IsFixedLength(IReadOnlyElementType, StoreObjectIdentifier)

Returns a flag indicating whether the elements are capable of storing only fixed-length data, such as strings.

Applies to