ISequence 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示模型中的数据库序列。
public interface ISequence
public interface ISequence : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
public interface ISequence : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlySequence
type ISequence = interface
type ISequence = interface
interface IAnnotatable
type ISequence = interface
interface IReadOnlySequence
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Interface ISequence
Public Interface ISequence
Implements IAnnotatable
Public Interface ISequence
Implements IAnnotatable, IReadOnlySequence
- 派生
- 实现
注解
有关详细信息和示例 ,请参阅数据库序列 。
属性
| ClrType |
已过时.
Type获取序列返回的值的 。 |
| IncrementBy |
获取递增的量,以获取序列中的每个新值。 |
| IsCyclic |
获取一个值,该值指示当达到最大值时,序列是否会从开头重新开始。 |
| Item[String] |
获取具有给定名称的批注的值,如果不存在,则返回 |
| MaxValue |
获取序列支持的最大值,或者 |
| MinValue |
获取序列支持的最小值,或者 |
| Model |
获取在其中定义此序列的模型。 |
| ModelSchema |
获取序列的模型架构。 这是中指定的 HasSequence(ModelBuilder, String, String) ,也是要与 一起使用 FindSequence(IConventionModel, String, String)的 。 (继承自 IReadOnlySequence) |
| Name |
获取数据库中序列的名称。 |
| Schema |
获取包含 序列的数据库架构。 |
| StartValue |
获取序列将启动的值。 |
| Type |
Type获取序列返回的值的 。 |
方法
扩展方法
| AnnotationsToDebugString(IAnnotatable, Int32) |
获取对象上声明的所有注释的调试字符串。 |
| GetAnnotation(IAnnotatable, String) |
获取具有给定名称的批注,如果不存在,则引发该批注。 |
| ToDebugString(ISequence, MetadataDebugStringOptions, Int32) |
创建给定元数据的可读表示形式。 警告:不要依赖于返回的字符串的格式。 它仅用于调试,可能会在发布之间任意更改。 |
| GetFluentApiCalls(ISequence, IAnnotationCodeGenerator) |
获取用于配置序列的 fluent API 调用。 |