Share via


ITableBase Interface

Definition

Represents a table-like object in the database.

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

Remarks

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

Properties

Columns

Gets the columns defined for this table.

ComplexTypeMappings

Gets the complex type mappings.

EntityTypeMappings

Gets the entity type mappings.

IsShared

Gets the value indicating whether multiple entity types are sharing the rows in the table.

Item[String]

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

(Inherited from IReadOnlyAnnotatable)
Model

Gets the database model.

Name

Gets the name of the table in the database.

Schema

Gets the schema of the table in the database.

SchemaQualifiedName

Gets the schema-qualified name of the table in the database.

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)
FindColumn(IProperty)

Gets the column mapped to the given property. Returns null if no column is mapped to the given property.

FindColumn(String)

Gets the column with the given name. Returns null if no column with the given name is defined.

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)
GetReferencingRowInternalForeignKeys(IEntityType)

Gets the foreign keys referencing the given entity type from other entity types sharing this table.

GetRowInternalForeignKeys(IEntityType)

Gets the foreign keys for the given entity type that point to other entity types sharing this table.

GetRuntimeAnnotations()

Gets all the runtime annotations on the current object.

(Inherited from IAnnotatable)
IsOptional(IEntityType)

Gets the value indicating whether an entity of the given type might not be present in a row.

IsOptional(ITypeBase)

Gets the value indicating whether an entity of the given type might not be present in a row.

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.

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.

Applies to