SqlServerMigrationSqlGenerator.Generate Method (DateTime)

[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.]

Generates SQL to specify a constant DateTime default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

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

protected virtual string Generate(
	DateTime defaultValue
)

Parameters

defaultValue
Type: System.DateTime
The value to be set.

Return Value

Type: System.String
SQL representing the default value.
Show: