IMutableEntityTypeMappingFragment 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 IMutableEntityTypeMappingFragment : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityTypeMappingFragment
type IMutableEntityTypeMappingFragment = interface
interface IReadOnlyEntityTypeMappingFragment
interface IReadOnlyAnnotatable
interface IMutableAnnotatable
Public Interface IMutableEntityTypeMappingFragment
Implements IMutableAnnotatable, IReadOnlyEntityTypeMappingFragment
- 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 or sets a value indicating whether the associated table is ignored by Migrations. |
Item[String] |
Gets or sets the value of the annotation with the given name. (Inherited from IMutableAnnotatable) |
StoreObject |
Gets store object for which the configuration is applied. (Inherited from IReadOnlyEntityTypeMappingFragment) |
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) |
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) |
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) |
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 |
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. |
UseSqlReturningClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>) |
Sets 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. |
UseSqlOutputClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>) |
Sets 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