RuntimeEntityTypeMappingFragment 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示特定类似表的存储对象的实体类型映射。
public class RuntimeEntityTypeMappingFragment : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment
type RuntimeEntityTypeMappingFragment = class
inherit AnnotatableBase
interface IEntityTypeMappingFragment
interface IReadOnlyEntityTypeMappingFragment
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Class RuntimeEntityTypeMappingFragment
Inherits AnnotatableBase
Implements IEntityTypeMappingFragment
- 继承
- 实现
注解
有关详细信息和示例,请参阅 为实体类型和关系建模 。
构造函数
RuntimeEntityTypeMappingFragment(RuntimeEntityType, StoreObjectIdentifier, Nullable<Boolean>) |
初始化 RuntimeEntityTypeMappingFragment 类的新实例。 |
属性
DebugView |
这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。 |
EntityType |
获取为其定义片段的实体类型。 |
IsReadOnly |
指示当前对象是否为只读对象。 (继承自 AnnotatableBase) |
IsTableExcludedFromMigrations |
获取一个值,该值指示迁移是否忽略关联的表。 |
Item[String] |
获取具有给定名称的值批注,如果不存在,则返回 |
StoreObject |
获取应用配置的存储对象。 |
方法
显式接口实现
IAnnotatable.AddRuntimeAnnotation(String, Object) |
向此对象添加运行时批注。 如果已存在具有指定名称的批注,则引发 。 (继承自 AnnotatableBase) |
IAnnotatable.FindRuntimeAnnotation(String) |
获取具有给定名称的运行时注释,如果不存在,则返回 |
IAnnotatable.GetRuntimeAnnotations() |
获取当前 对象上的所有运行时注释。 (继承自 AnnotatableBase) |
IAnnotatable.RemoveRuntimeAnnotation(String) |
从此 对象中删除给定的运行时批注。 (继承自 AnnotatableBase) |
IAnnotatable.SetRuntimeAnnotation(String, Object) |
设置存储在给定键下的运行时注释。 如果具有指定名称的批注已存在,则覆盖现有批注。 (继承自 AnnotatableBase) |
IEntityTypeMappingFragment.EntityType |
获取为其定义片段的实体类型。 |
IReadOnlyAnnotatable.FindAnnotation(String) |
获取具有给定名称的批注,如果不存在,则返回 |
IReadOnlyAnnotatable.GetAnnotations() |
获取当前 对象上的所有注释。 (继承自 AnnotatableBase) |
IReadOnlyAnnotatable.Item[String] |
获取具有给定名称的批注的值,如果不存在,则返回 |
IReadOnlyEntityTypeMappingFragment.EntityType |
获取为其定义片段的实体类型。 |
扩展方法
IsSqlReturningClauseUsed(IReadOnlyEntityTypeMappingFragment) |
返回一个值,该值指示在保存对表所做的更改时是否使用 SQL RETURNING 子句。 RETURNING 子句与某些 Sqlite 功能不兼容,例如具有 AFTER 触发器的虚拟表或表。 |
IsSqlOutputClauseUsed(IReadOnlyEntityTypeMappingFragment) |
返回一个值,该值指示在将更改保存到关联的表时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如带触发器的表。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈