语言

SqlServerMigrationSqlGenerator.GuidColumnDefault 属性

定义

返回在迁移中未显式指定任何默认值时用于存储生成的 GUID 列的列默认值。 返回本地 SQL Server 2005 及更高版本的 newsequentialid。 返回 SQL Azure的 newid()。

protected virtual string GuidColumnDefault { get; }
member this.GuidColumnDefault : string
Protected Overridable ReadOnly Property GuidColumnDefault As String

属性值

如上所述,newsequentialid() 或 newid()。

适用于