SqlServerMigrationSqlGenerator.Generate Method (Byte())

[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 byte[] 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)

'Declaration
Protected Overridable Function Generate ( _
	defaultValue As Byte() _
) As String
'Usage
Dim defaultValue As Byte()
Dim returnValue As String 

returnValue = Me.Generate(defaultValue)

Parameters

defaultValue
Type: System.Byte()
The value to be set.

Return Value

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