IMutableElementType Interface
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.
Represents the elements of a collection property.
public interface IMutableElementType : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyElementType
type IMutableElementType = interface
interface IReadOnlyElementType
interface IReadOnlyAnnotatable
interface IMutableAnnotatable
Public Interface IMutableElementType
Implements IMutableAnnotatable, IReadOnlyElementType
- Implements
Remarks
This interface is used during model creation and allows the metadata to be modified. Once the model is built, IElementType represents a read-only view of the same metadata.
See Modeling entity types and relationships for more information and examples.
Properties
ClrType |
The type of elements in the collection. (Inherited from IReadOnlyElementType) |
CollectionProperty |
Gets the collection property for which this represents the element. |
IsNullable |
Gets or sets a value indicating whether elements of the collection can be |
Item[String] |
Gets or sets the value of the annotation with the given name. (Inherited from IMutableAnnotatable) |
Methods
AddAnnotation(String, Object) |
Adds an annotation to this object. Throws if an annotation with the specified name already exists. (Inherited from IMutableAnnotatable) |
AddAnnotations(IEnumerable<IAnnotation>) |
Adds annotations to an object. (Inherited from IMutableAnnotatable) |
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 IMutableAnnotatable) |
FindTypeMapping() |
Returns the type mapping for elements of the collection. (Inherited from IReadOnlyElementType) |
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 IMutableAnnotatable) |
GetJsonValueReaderWriter() |
Gets the type of JsonValueReaderWriter<TValue> to use for elements of the collection. (Inherited from IReadOnlyElementType) |
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. (Inherited from IReadOnlyElementType) |
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. (Inherited from IReadOnlyElementType) |
GetProviderClrType() |
Gets the type that the elements of the collection will be converted to before being sent to the database provider. (Inherited from IReadOnlyElementType) |
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. (Inherited from IReadOnlyElementType) |
GetTypeMapping() |
Returns the CoreTypeMapping for the elements of the collection from a finalized model. (Inherited from IReadOnlyElementType) |
GetValueComparer() |
Gets the custom ValueComparer for elements of the collection. (Inherited from IReadOnlyElementType) |
GetValueConverter() |
Gets the custom ValueConverter for this elements of the collection. (Inherited from IReadOnlyElementType) |
IsUnicode() |
Gets a value indicating whether elements of the collection can persist Unicode characters. (Inherited from IReadOnlyElementType) |
RemoveAnnotation(String) |
Removes the given annotation from this object. (Inherited from IMutableAnnotatable) |
SetAnnotation(String, Object) |
Sets the annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists. (Inherited from IMutableAnnotatable) |
SetIsUnicode(Nullable<Boolean>) |
Sets a value indicating whether elements of the collection can persist Unicode characters. |
SetJsonValueReaderWriterType(Type) |
Sets the type of JsonValueReaderWriter<TValue> to use for elements of the collection. |
SetMaxLength(Nullable<Int32>) |
Sets 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. |
SetOrRemoveAnnotation(String, Object) |
Sets the annotation stored under the given name. Overwrites the existing annotation if an
annotation with the specified name already exists. Removes the existing annotation if |
SetPrecision(Nullable<Int32>) |
Sets 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. |
SetProviderClrType(Type) |
Sets the type that the elements of the collection will be converted to before being sent to the database provider. |
SetScale(Nullable<Int32>) |
Sets 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. |
SetTypeMapping(CoreTypeMapping) |
Sets the CoreTypeMapping for the given element. |
SetValueComparer(Type) |
Sets the custom ValueComparer for elements of the collection. |
SetValueComparer(ValueComparer) |
Sets the custom ValueComparer for elements of the collection. |
SetValueConverter(Type) |
Sets the custom ValueConverter for this elements of the collection. |
SetValueConverter(ValueConverter) |
Sets the custom ValueConverter for this elements of the collection. |
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. (Inherited from IReadOnlyElementType) |
Explicit Interface Implementations
IReadOnlyElementType.IsNullable |
Gets a value indicating whether elements of the collection can be |
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 |
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. |
SetIsFixedLength(IMutableElementType, Nullable<Boolean>) |
Sets a flag indicating whether the elements are capable of storing only fixed-length data, such as strings. |
SetStoreType(IMutableElementType, String) |
Sets the database type of the elements. |
Applies to
Entity Framework