Partilhar via


ITableMapping Interface

Definition

Represents entity type mapping to a table.

public interface ITableMapping : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.ITableMappingBase
type ITableMapping = interface
    interface ITableMappingBase
    interface IAnnotatable
type ITableMapping = interface
    interface ITableMappingBase
    interface IAnnotatable
    interface IReadOnlyAnnotatable
Public Interface ITableMapping
Implements IAnnotatable, ITableMappingBase
Implements

Remarks

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

Properties

ColumnMappings

Gets the properties mapped to columns on the target table.

DeleteStoredProcedureMapping

Gets the corresponding insert stored procedure mapping if it exists.

EntityType

Gets the mapped entity type.

(Inherited from ITableMappingBase)
IncludesDerivedTypes

Gets the value indicating whether the mapped table-like object includes rows for the derived entity types. Set to false for inherited mappings. null if the entity type has no derived types.

(Inherited from ITableMappingBase)
InsertStoredProcedureMapping

Gets the corresponding insert stored procedure mapping if it exists.

IsSharedTablePrincipal

Gets the value indicating whether this is the mapping for the principal entity type if the table-like object is shared. null if the table-like object is not shared.

(Inherited from ITableMappingBase)
IsSplitEntityTypePrincipal

Gets the value indicating whether this is the mapping for the principal table-like object if the entity type is split. null if the entity type is not split.

(Inherited from ITableMappingBase)
Item[String]

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

(Inherited from IReadOnlyAnnotatable)
Table

Gets the target table.

TypeBase

Gets the mapped type base.

(Inherited from ITableMappingBase)
UpdateStoredProcedureMapping

Gets the corresponding insert stored procedure mapping if it exists.

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 null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

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

(Inherited from IAnnotatable)
FindRuntimeAnnotationValue(String)

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

(Inherited from IAnnotatable)
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)
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)
GetRuntimeAnnotations()

Gets all the runtime annotations on the current object.

(Inherited from IAnnotatable)
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)
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.

Explicit Interface Implementations

ITableMappingBase.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

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

ToDebugString(ITableMapping, 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.

Applies to