SqlServerMigrationSqlGenerator::Generate Method (Boolean)

[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 bool 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(
	bool defaultValue
)

Parameters

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

Return Value

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