语言

IMutableSequence 接口

定义

表示模型中的数据库序列。

public interface IMutableSequence : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlySequence
public interface IMutableSequence : Microsoft.EntityFrameworkCore.Metadata.ISequence
public interface IMutableSequence : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.ISequence
type IMutableSequence = interface
    interface IReadOnlySequence
    interface IReadOnlyAnnotatable
    interface IMutableAnnotatable
type IMutableSequence = interface
    interface ISequence
type IMutableSequence = interface
    interface ISequence
    interface IAnnotatable
    interface IMutableAnnotatable
Public Interface IMutableSequence
Implements IMutableAnnotatable, IReadOnlySequence
Public Interface IMutableSequence
Implements ISequence
Public Interface IMutableSequence
Implements IMutableAnnotatable, ISequence
实现

注解

有关详细信息和示例,请参阅 数据库序列 。

属性

名称 说明
ClrType
已过时.

获取或设置 Type 序列返回的值。

IncrementBy

获取或设置递增的量,以获取序列中的每个新值。

IsCyclic

获取或设置一个值,该值指示在达到最大值时序列是否从开头重新开始。

Item[String]

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

(继承自 IAnnotatable)
MaxValue

获取或设置序列支持的最大值,或者 null 如果未设置任何值。

MinValue

获取或设置序列支持的最小值,或者 null 如果未设置最小值。

Model

IMutableModel获取定义此序列的位置。

ModelSchema

获取序列的模型架构。 这是在其中 HasSequence(ModelBuilder, String, String) 指定的和要与之一起使用 FindSequence(IConventionModel, String, String)的 。

(继承自 IReadOnlySequence)
Name

获取数据库中序列的名称。

(继承自 ISequence)
Schema

获取包含序列的数据库架构。

(继承自 ISequence)
StartValue

获取或设置序列将启动的值。

Type

获取或设置 Type 序列返回的值。

方法

名称 说明
AddAnnotation(String, Object)

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

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

向对象添加批注。

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

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

(继承自 IAnnotatable)
AnnotationsToDebugString(Int32)

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

(继承自 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(继承自 IAnnotatable)
FindRuntimeAnnotation(String)

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

(继承自 IAnnotatable)
FindRuntimeAnnotationValue(String)

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

(继承自 IAnnotatable)
GetAnnotation(String)

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

(继承自 IReadOnlyAnnotatable)
GetAnnotations()

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

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

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

(继承自 IAnnotatable)
GetRuntimeAnnotations()

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

(继承自 IAnnotatable)
RemoveAnnotation(String)

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

(继承自 IMutableAnnotatable)
RemoveRuntimeAnnotation(String)

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

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

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

(继承自 IMutableAnnotatable)
SetOrRemoveAnnotation(String, Object)

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

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

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

(继承自 IAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

创建给定元数据的可读表示形式。

警告:不要依赖于返回的字符串的格式。 它仅用于调试,可以在版本之间任意更改。

(继承自 IReadOnlySequence)

扩展方法

名称 说明
AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

向对象添加批注。

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

GetAnnotation(IMutableAnnotatable, String)

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

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)

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

ToDebugString(ISequence, MetadataDebugStringOptions, Int32)

创建给定元数据的可读表示形式。

警告:不要依赖于返回的字符串的格式。 它仅用于调试,可以在版本之间任意更改。

适用于