SqlServerMigrationSqlGenerator.GuidColumnDefault 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當遷移過程中未明確指定預設值時,會回傳欄位預設值,用於儲存產生的 GUID 欄位。 回傳 newsequentialid() 以支援本地 SQL Server 2005 及以後版本。 Returns newid() for SQL Azure.
protected virtual string GuidColumnDefault { get; }
member this.GuidColumnDefault : string
Protected Overridable ReadOnly Property GuidColumnDefault As String
屬性值
如上所述,可以是 newsequentialid() 或 newid()。