ITypeMappingConfiguration 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 configuration for a scalar type.
public interface ITypeMappingConfiguration : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
type ITypeMappingConfiguration = interface
interface IAnnotatable
interface IReadOnlyAnnotatable
Public Interface ITypeMappingConfiguration
Implements IAnnotatable
- Derived
- Implements
Remarks
See Modeling entity types and relationships for more information and examples.
Properties
ClrType |
Gets the type configured by this object. |
Item[String] |
Gets the value of the annotation with the given name, returning |
Methods
AddRuntimeAnnotation(String, Object) |
Adds a runtime annotation to this object. Throws if an annotation with the specified name already exists. (Inherited from IAnnotatable) |
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 |
FindRuntimeAnnotation(String) |
Gets the runtime annotation with the given name, returning |
FindRuntimeAnnotationValue(String) |
Gets the value of the runtime annotation with the given name, returning |
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) |
GetMaxLength() |
Gets the maximum length of data that is allowed in this property. For example, if the property is a String then this is the maximum number of characters. |
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg) |
Gets the value of the runtime annotation with the given name, adding it if one does not exist. (Inherited from IAnnotatable) |
GetPrecision() |
Gets the precision of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of digits. |
GetProviderClrType() |
Gets the type that the property value will be converted to before being sent to the database provider. |
GetRuntimeAnnotations() |
Gets all the runtime annotations on the current object. (Inherited from IAnnotatable) |
GetScale() |
Gets the scale of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of decimal places. |
GetValueConverter() |
Gets the custom ValueConverter set for this property. |
IsUnicode() |
Gets a value indicating whether or not the property can persist Unicode characters. |
RemoveRuntimeAnnotation(String) |
Removes the given runtime annotation from this object. (Inherited from IAnnotatable) |
SetRuntimeAnnotation(String, Object) |
Sets the runtime annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists. (Inherited from IAnnotatable) |
Extension Methods
AnnotationsToDebugString(IAnnotatable, Int32) |
Gets the debug string for all annotations declared on the object. |
Applies to
Entity Framework