IEntityTypeMappingFragment 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 entity type mapping for a particular table-like store object.
public interface IEntityTypeMappingFragment : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityTypeMappingFragment
type IEntityTypeMappingFragment = interface
interface IReadOnlyEntityTypeMappingFragment
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Interface IEntityTypeMappingFragment
Implements IAnnotatable, IReadOnlyEntityTypeMappingFragment
- Derived
- Implements
Remarks
See Modeling entity types and relationships for more information and examples.
Properties
EntityType |
Gets the entity type for which the fragment is defined. |
IsTableExcludedFromMigrations |
Gets a value indicating whether the associated table is ignored by Migrations. (Inherited from IReadOnlyEntityTypeMappingFragment) |
Item[String] |
Gets the value of the annotation with the given name, returning |
StoreObject |
Gets store object for which the configuration is applied. (Inherited from IReadOnlyEntityTypeMappingFragment) |
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) |
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. (Inherited from IReadOnlyEntityTypeMappingFragment) |
Extension Methods
IsSqlReturningClauseUsed(IReadOnlyEntityTypeMappingFragment) |
Returns a value indicating whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers. |
IsSqlOutputClauseUsed(IReadOnlyEntityTypeMappingFragment) |
Returns a value indicating whether to use the SQL OUTPUT clause when saving changes to the associated table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers. |
Applies to
Entity Framework