SqlServerMigrationSqlGenerator::GuidColumnDefault Property

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Returns the column default value to use for store-generated GUID columns when no default value is explicitly specified in the migration. Returns newsequentialid() for on-premises SQL Server 2005 and later. Returns newid() for SQL Azure.

Namespace:  System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

protected:
virtual property String^ GuidColumnDefault {
	String^ get ();
}

Property Value

Type: System::String
Either newsequentialid() or newid() as described above.
Show: