Share via


RuntimeRelationalPropertyOverrides 类

定义

表示特定类似表的存储对象的属性方面重写。

public class RuntimeRelationalPropertyOverrides : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRelationalPropertyOverrides
public class RuntimeRelationalPropertyOverrides : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides
type RuntimeRelationalPropertyOverrides = class
    inherit AnnotatableBase
    interface IRelationalPropertyOverrides
    interface IAnnotatable
    interface IReadOnlyAnnotatable
type RuntimeRelationalPropertyOverrides = class
    inherit AnnotatableBase
    interface IRelationalPropertyOverrides
    interface IReadOnlyRelationalPropertyOverrides
    interface IReadOnlyAnnotatable
    interface IAnnotatable
Public Class RuntimeRelationalPropertyOverrides
Inherits AnnotatableBase
Implements IRelationalPropertyOverrides
继承
RuntimeRelationalPropertyOverrides
实现
IAnnotatable IReadOnlyAnnotatable Microsoft.EntityFrameworkCore.Metadata.Internal.IRelationalPropertyOverrides IReadOnlyRelationalPropertyOverrides IRelationalPropertyOverrides

注解

有关详细信息和示例,请参阅 为实体类型和关系建模

构造函数

RuntimeRelationalPropertyOverrides(RuntimeProperty, Boolean, String)

初始化 RuntimeRelationalPropertyOverrides 类的新实例。

RuntimeRelationalPropertyOverrides(RuntimeProperty, StoreObjectIdentifier, Boolean, String)

初始化 RuntimeRelationalPropertyOverrides 类的新实例。

属性

DebugView

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

IsReadOnly

指示当前对象是否为只读对象。

(继承自 AnnotatableBase)
Item[String]

获取具有给定名称的值批注,如果不存在,则返回 null

(继承自 AnnotatableBase)
Property

获取应用重写的属性。

StoreObject

这些重写所针对的类似表的存储对象的 ID。

方法

AddAnnotation(String, Annotation)

向此对象添加批注。 如果已存在具有指定名称的批注,则引发 。

(继承自 AnnotatableBase)
AddAnnotation(String, Object)

向此对象添加批注。 如果已存在具有指定名称的批注,则引发 。

(继承自 AnnotatableBase)
AddAnnotations(IEnumerable<IAnnotation>)

向此对象添加批注。

(继承自 AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

向此对象添加批注。

(继承自 AnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

向此对象添加运行时批注。 如果已存在具有指定名称的批注,则引发 。

(继承自 AnnotatableBase)
AddRuntimeAnnotation(String, Object)

向此对象添加运行时批注。 如果已存在具有指定名称的批注,则引发 。

(继承自 AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

向此对象添加运行时批注。

(继承自 AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

向此对象添加运行时批注。

(继承自 AnnotatableBase)
CreateAnnotation(String, Object)

创建新批注。

(继承自 AnnotatableBase)
CreateRuntimeAnnotation(String, Object)

创建新的运行时批注。

(继承自 AnnotatableBase)
EnsureMutable()

如果模型为只读,则引发 。

(继承自 AnnotatableBase)
EnsureReadOnly()

如果模型不是只读的,则引发 。

(继承自 AnnotatableBase)
FindAnnotation(String)

获取具有给定名称的批注,如果不存在,则返回 null

(继承自 AnnotatableBase)
FindRuntimeAnnotation(String)

获取具有给定名称的运行时注释,如果不存在,则返回 null

(继承自 AnnotatableBase)
GetAnnotation(String)

获取具有给定名称的批注,如果不存在,则引发该批注。

(继承自 AnnotatableBase)
GetAnnotations()

获取当前 对象上的所有注释。

(继承自 AnnotatableBase)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

获取具有给定名称的运行时注释的值,如果不存在,则添加该值。

(继承自 AnnotatableBase)
GetRuntimeAnnotations()

获取当前 对象上的所有运行时注释。

(继承自 AnnotatableBase)
OnAnnotationSet(String, Annotation, Annotation)

在设置或删除批注时调用。

(继承自 AnnotatableBase)
RemoveAnnotation(String)

从此 对象中删除给定的批注。

(继承自 AnnotatableBase)
RemoveRuntimeAnnotation(String)

从此 对象中删除给定的运行时批注。

(继承自 AnnotatableBase)
SetAnnotation(String, Annotation, Annotation)

设置存储在给定键下的批注。 如果具有指定名称的批注已存在,则覆盖现有批注。

(继承自 AnnotatableBase)
SetAnnotation(String, Object)

设置存储在给定键下的批注。 如果具有指定名称的批注已存在,则覆盖现有批注。

(继承自 AnnotatableBase)
SetRuntimeAnnotation(String, Annotation, Annotation)

设置存储在给定键下的运行时注释。 如果具有指定名称的批注已存在,则覆盖现有批注。

(继承自 AnnotatableBase)
SetRuntimeAnnotation(String, Object)

设置存储在给定键下的运行时注释。 如果具有指定名称的批注已存在,则覆盖现有批注。

(继承自 AnnotatableBase)
ToString()

表示特定类似表的存储对象的属性方面重写。

显式接口实现

IAnnotatable.AddRuntimeAnnotation(String, Object)

向此对象添加运行时批注。 如果已存在具有指定名称的批注,则引发 。

(继承自 AnnotatableBase)
IAnnotatable.FindRuntimeAnnotation(String)

获取具有给定名称的运行时注释,如果不存在,则返回 null

(继承自 AnnotatableBase)
IAnnotatable.GetRuntimeAnnotations()

获取当前 对象上的所有运行时注释。

(继承自 AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

从此 对象中删除给定的运行时批注。

(继承自 AnnotatableBase)
IAnnotatable.SetRuntimeAnnotation(String, Object)

设置存储在给定键下的运行时注释。 如果具有指定名称的批注已存在,则覆盖现有批注。

(继承自 AnnotatableBase)
IReadOnlyAnnotatable.FindAnnotation(String)

获取具有给定名称的批注,如果不存在,则返回 null

(继承自 AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

获取当前 对象上的所有注释。

(继承自 AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

获取具有给定名称的批注的值,如果不存在,则返回 null

(继承自 AnnotatableBase)
IReadOnlyRelationalPropertyOverrides.ColumnName

获取属性在面向指定的类似表的存储对象时映射到的列。

IReadOnlyRelationalPropertyOverrides.IsColumnNameOverridden

获取一个值,该值指示是否重写列名。

IReadOnlyRelationalPropertyOverrides.Property

获取重写所针对的属性。

IRelationalPropertyOverrides.ColumnName

表示特定类似表的存储对象的属性方面重写。

IRelationalPropertyOverrides.ColumnNameOverriden

表示特定类似表的存储对象的属性方面重写。

IRelationalPropertyOverrides.Property

获取重写所针对的属性。

扩展方法

AnnotationsToDebugString(IAnnotatable, Int32)

获取对象上声明的所有注释的调试字符串。

GetIdentityIncrement(IReadOnlyRelationalPropertyOverrides)

返回标识增量。

GetIdentitySeed(IReadOnlyRelationalPropertyOverrides)

返回标识种子。

GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)

返回 SqlServerValueGenerationStrategy 要用于 属性的 。

适用于