SortableEntityWithUUIDKey.Id Property

获取/设置 Id 主键。

Definition

Namespace: QuickAdmin.EntityBase
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.2.5
C#
[Column(IsPrimary = true, Position = 1, StringLength = 36, 
	IsNullable = false)]
[Required]
public override string Id { get; set; }

Property Value

string
默认值为 32 位 GUID,如:"0de178a59a694491b2a445ca794e7b59",由以下代码生成:
C#
Guid.NewGuid().ToString("N")

Implements

IEntityWithIdKey<TKey>.Id
IEntityWithIdKey<TKey>.Id

Remarks

Id 主键字段的长度被标记为 36,若要更改,请在继承类中重写 Id 属性进行指定。

See Also