TimestampAttributeConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将属性配置为并发令牌(如果 TimestampAttribute 应用于该令牌)的约定。
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class TimestampAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.TimestampAttribute>
public class TimestampAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.TimestampAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type TimestampAttributeConvention = class
inherit PropertyAttributeConventionBase<TimestampAttribute>
type TimestampAttributeConvention = class
inherit PropertyAttributeConventionBase<TimestampAttribute>
Public Class TimestampAttributeConvention
Inherits PropertyAttributeConventionBase(Of TimestampAttribute)
- 继承
- 特性
注解
有关详细信息和示例,请参阅 模型生成约定 。
构造函数
| 名称 | 说明 |
|---|---|
| TimestampAttributeConvention(ProviderConventionSetBuilderDependencies) |
创建 TimestampAttributeConvention的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Dependencies |
此服务的依赖项。 (继承自 PropertyAttributeConventionBase<TAttribute>) |