Поделиться через


CSharpMigrationCodeGenerator.Generate Метод

Определение

Перегрузки

Generate(CreateProcedureOperation, IndentedTextWriter)

Создает код для выполнения CreateProcedureOperation.

Generate(CreateTableOperation, IndentedTextWriter)

Создает код для выполнения CreateTableOperation.

Generate(DropColumnOperation, IndentedTextWriter)

Создает код для выполнения DropColumnOperation.

Generate(DropForeignKeyOperation, IndentedTextWriter)

Создает код для выполнения DropForeignKeyOperation.

Generate(DropIndexOperation, IndentedTextWriter)

Создает код для выполнения DropIndexOperation.

Generate(DropProcedureOperation, IndentedTextWriter)

Создает код для выполнения DropProcedureOperation.

Generate(DropTableOperation, IndentedTextWriter)

Создает код для выполнения DropTableOperation.

Generate(MoveProcedureOperation, IndentedTextWriter)

Создает код для выполнения MoveProcedureOperation.

Generate(MoveTableOperation, IndentedTextWriter)

Создает код для выполнения MoveTableOperation.

Generate(RenameColumnOperation, IndentedTextWriter)

Создает код для выполнения RenameColumnOperation.

Generate(RenameIndexOperation, IndentedTextWriter)

Создает код для выполнения RenameIndexOperation.

Generate(RenameProcedureOperation, IndentedTextWriter)

Создает код для выполнения RenameProcedureOperation.

Generate(RenameTableOperation, IndentedTextWriter)

Создает код для выполнения RenameTableOperation.

Generate(SqlOperation, IndentedTextWriter)

Создает код для выполнения SqlOperation.

Generate(IEnumerable<MigrationOperation>, String, String)

Создает основной файл кода, который пользователь может просматривать и изменять.

Generate(ColumnModel, IndentedTextWriter, Boolean)

Создает код для указания определения для ColumnModel.

Generate(ParameterModel, IndentedTextWriter, Boolean)

Создает код для указания определения для ParameterModel.

Generate(String, String, String, String, String)

Создает файл кода программной части с метаданными миграции.

Generate(String, IEnumerable<MigrationOperation>, String, String, String, String)

Создает код, который должен быть добавлен в проект users.

Generate(CreateIndexOperation, IndentedTextWriter)

Создает код для выполнения CreateIndexOperation.

Generate(AlterTableOperation, IndentedTextWriter)

Создает код для .AlterTableOperation

Generate(DropPrimaryKeyOperation, IndentedTextWriter)

Создает код для выполнения DropPrimaryKeyOperation.

Generate(AlterColumnOperation, IndentedTextWriter)

Создает код для выполнения AlterColumnOperation.

Generate(Byte)

Создает код для указания значения по умолчанию для столбца Byte .

Generate(Byte[])

Создает код для указания значения по умолчанию для столбца byte[] .

Generate(DbGeography)

Создает код для указания значения по умолчанию для столбца DbGeography .

Generate(AlterProcedureOperation, IndentedTextWriter)

Создает код для выполнения AlterProcedureOperation.

Generate(DbGeography)

Создает код для указания значения по умолчанию для столбца DbGeography .

Generate(DbGeometry)

Создает код для указания значения по умолчанию для столбца DbGeometry .

Generate(DateTime)

Создает код для указания значения по умолчанию для столбца DateTime .

Generate(DateTimeOffset)

Создает код для указания значения по умолчанию для столбца DateTimeOffset .

Generate(Decimal)

Создает код для указания значения по умолчанию для столбца Decimal .

Generate(Guid)

Создает код для указания значения по умолчанию для столбца Guid .

Generate(DbGeometry)

Создает код для указания значения по умолчанию для столбца DbGeometry .

Generate(Object)

Создает код для указания значения по умолчанию для столбца неизвестного типа данных.

Generate(Single)

Создает код для указания значения по умолчанию для столбца Single .

Generate(String)

Создает код для указания значения по умолчанию для столбца String .

Generate(Int64)

Создает код для указания значения по умолчанию для столбца Int64 .

Generate(TimeSpan)

Создает код для указания значения по умолчанию для столбца TimeSpan .

Generate(IEnumerable<String>, IndentedTextWriter)

Создает код для указания набора имен столбцов с помощью лямбда-выражения.

Generate(AddColumnOperation, IndentedTextWriter)

Создает код для выполнения AddColumnOperation.

Generate(AddForeignKeyOperation, IndentedTextWriter)

Создает код для выполнения AddForeignKeyOperation.

Generate(AddPrimaryKeyOperation, IndentedTextWriter)

Создает код для выполнения AddPrimaryKeyOperation.

Generate(CreateProcedureOperation, IndentedTextWriter)

Создает код для выполнения CreateProcedureOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.CreateProcedureOperation createProcedureOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.CreateProcedureOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

createProcedureOperation
CreateProcedureOperation

Операция, для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(CreateTableOperation, IndentedTextWriter)

Создает код для выполнения CreateTableOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.CreateTableOperation createTableOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.CreateTableOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

createTableOperation
CreateTableOperation

Операция, для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(DropColumnOperation, IndentedTextWriter)

Создает код для выполнения DropColumnOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.DropColumnOperation dropColumnOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.DropColumnOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

dropColumnOperation
DropColumnOperation

Операция, для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(DropForeignKeyOperation, IndentedTextWriter)

Создает код для выполнения DropForeignKeyOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.DropForeignKeyOperation dropForeignKeyOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.DropForeignKeyOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

dropForeignKeyOperation
DropForeignKeyOperation

Операция, для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(DropIndexOperation, IndentedTextWriter)

Создает код для выполнения DropIndexOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.DropIndexOperation dropIndexOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.DropIndexOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

dropIndexOperation
DropIndexOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(DropProcedureOperation, IndentedTextWriter)

Создает код для выполнения DropProcedureOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.DropProcedureOperation dropProcedureOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.DropProcedureOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

dropProcedureOperation
DropProcedureOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(DropTableOperation, IndentedTextWriter)

Создает код для выполнения DropTableOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.DropTableOperation dropTableOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.DropTableOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

dropTableOperation
DropTableOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(MoveProcedureOperation, IndentedTextWriter)

Создает код для выполнения MoveProcedureOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.MoveProcedureOperation moveProcedureOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.MoveProcedureOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

moveProcedureOperation
MoveProcedureOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(MoveTableOperation, IndentedTextWriter)

Создает код для выполнения MoveTableOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.MoveTableOperation moveTableOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.MoveTableOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

moveTableOperation
MoveTableOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(RenameColumnOperation, IndentedTextWriter)

Создает код для выполнения RenameColumnOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.RenameColumnOperation renameColumnOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.RenameColumnOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

renameColumnOperation
RenameColumnOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(RenameIndexOperation, IndentedTextWriter)

Создает код для выполнения RenameIndexOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.RenameIndexOperation renameIndexOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.RenameIndexOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

renameIndexOperation
RenameIndexOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(RenameProcedureOperation, IndentedTextWriter)

Создает код для выполнения RenameProcedureOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.RenameProcedureOperation renameProcedureOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.RenameProcedureOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

renameProcedureOperation
RenameProcedureOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(RenameTableOperation, IndentedTextWriter)

Создает код для выполнения RenameTableOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.RenameTableOperation renameTableOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.RenameTableOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

renameTableOperation
RenameTableOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(SqlOperation, IndentedTextWriter)

Создает код для выполнения SqlOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.SqlOperation sqlOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.SqlOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

sqlOperation
SqlOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(IEnumerable<MigrationOperation>, String, String)

Создает основной файл кода, который пользователь может просматривать и изменять.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
protected virtual string Generate (System.Collections.Generic.IEnumerable<System.Data.Entity.Migrations.Model.MigrationOperation> operations, string namespace, string className);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId="namespace")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
protected virtual string Generate (System.Collections.Generic.IEnumerable<System.Data.Entity.Migrations.Model.MigrationOperation> operations, string namespace, string className);
override this.Generate : seq<System.Data.Entity.Migrations.Model.MigrationOperation> * string * string -> string
Protected Overridable Function Generate (operations As IEnumerable(Of MigrationOperation), namespace As String, className As String) As String

Параметры

operations
IEnumerable<MigrationOperation>

Операции, выполняемые миграцией.

namespace
String

Пространство имен, в которое должен быть создан код.

className
String

Имя класса, который должен быть создан.

Возвращаемое значение

Сформированный код.

Атрибуты

Применяется к

Generate(ColumnModel, IndentedTextWriter, Boolean)

Создает код для указания определения для ColumnModel.

protected virtual void Generate (System.Data.Entity.Migrations.Model.ColumnModel column, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, bool emitName = false);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected virtual void Generate (System.Data.Entity.Migrations.Model.ColumnModel column, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, bool emitName = false);
override this.Generate : System.Data.Entity.Migrations.Model.ColumnModel * System.Data.Entity.Migrations.Utilities.IndentedTextWriter * bool -> unit
Protected Overridable Sub Generate (column As ColumnModel, writer As IndentedTextWriter, Optional emitName As Boolean = false)

Параметры

column
ColumnModel

Определение столбца для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

emitName
Boolean

Значение, указывающее, следует ли включать имя столбца в определение.

Атрибуты

Применяется к

Generate(ParameterModel, IndentedTextWriter, Boolean)

Создает код для указания определения для ParameterModel.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected virtual void Generate (System.Data.Entity.Migrations.Model.ParameterModel parameterModel, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, bool emitName = false);
override this.Generate : System.Data.Entity.Migrations.Model.ParameterModel * System.Data.Entity.Migrations.Utilities.IndentedTextWriter * bool -> unit

Параметры

parameterModel
ParameterModel

Определение параметра для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

emitName
Boolean

Значение, указывающее, следует ли включать имя столбца в определение.

Атрибуты

Применяется к

Generate(String, String, String, String, String)

Создает файл кода программной части с метаданными миграции.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
protected virtual string Generate (string migrationId, string sourceModel, string targetModel, string namespace, string className);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId="namespace")]
protected virtual string Generate (string migrationId, string sourceModel, string targetModel, string namespace, string className);
override this.Generate : string * string * string * string * string -> string
Protected Overridable Function Generate (migrationId As String, sourceModel As String, targetModel As String, namespace As String, className As String) As String

Параметры

migrationId
String

Уникальный идентификатор миграции.

sourceModel
String

Исходная модель, хранимая в метаданных миграции.

targetModel
String

Целевая модель, хранимая в метаданных миграции.

namespace
String

Пространство имен, в которое должен быть создан код.

className
String

Имя класса, который должен быть создан.

Возвращаемое значение

Сформированный код.

Атрибуты

Применяется к

Generate(String, IEnumerable<MigrationOperation>, String, String, String, String)

Создает код, который необходимо добавить в проект пользователей.

public override System.Data.Entity.Migrations.Design.ScaffoldedMigration Generate (string migrationId, System.Collections.Generic.IEnumerable<System.Data.Entity.Migrations.Model.MigrationOperation> operations, string sourceModel, string targetModel, string namespace, string className);
override this.Generate : string * seq<System.Data.Entity.Migrations.Model.MigrationOperation> * string * string * string * string -> System.Data.Entity.Migrations.Design.ScaffoldedMigration
Public Overrides Function Generate (migrationId As String, operations As IEnumerable(Of MigrationOperation), sourceModel As String, targetModel As String, namespace As String, className As String) As ScaffoldedMigration

Параметры

migrationId
String

Уникальный идентификатор миграции.

operations
IEnumerable<MigrationOperation>

Операции, выполняемые миграцией.

sourceModel
String

Исходная модель, хранимая в метаданных миграции.

targetModel
String

Целевая модель, хранимая в метаданных миграции.

namespace
String

Пространство имен, в которое должен быть создан код.

className
String

Имя класса, который должен быть создан.

Возвращаемое значение

Сформированный код.

Применяется к

Generate(CreateIndexOperation, IndentedTextWriter)

Создает код для выполнения CreateIndexOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.CreateIndexOperation createIndexOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.CreateIndexOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

createIndexOperation
CreateIndexOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(AlterTableOperation, IndentedTextWriter)

Создает код для AlterTableOperation.

protected internal virtual void Generate (System.Data.Entity.Migrations.Model.AlterTableOperation alterTableOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.AlterTableOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

alterTableOperation
AlterTableOperation

Операция, для которой должен быть создан код.

writer
IndentedTextWriter

Модуль записи, в который должен быть записан созданный код.

Применяется к

Generate(DropPrimaryKeyOperation, IndentedTextWriter)

Создает код для выполнения DropPrimaryKeyOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.DropPrimaryKeyOperation dropPrimaryKeyOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.DropPrimaryKeyOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

dropPrimaryKeyOperation
DropPrimaryKeyOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(AlterColumnOperation, IndentedTextWriter)

Создает код для выполнения AlterColumnOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.AlterColumnOperation alterColumnOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.AlterColumnOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

alterColumnOperation
AlterColumnOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(Byte)

Создает код для указания значения по умолчанию для столбца Byte .

protected virtual string Generate (byte defaultValue);
override this.Generate : byte -> string
Protected Overridable Function Generate (defaultValue As Byte) As String

Параметры

defaultValue
Byte

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(Byte[])

Создает код для указания значения по умолчанию для столбца byte[] .

protected virtual string Generate (byte[] defaultValue);
override this.Generate : byte[] -> string
Protected Overridable Function Generate (defaultValue As Byte()) As String

Параметры

defaultValue
Byte[]

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(DbGeography)

Создает код для указания значения по умолчанию для столбца DbGeography .

protected virtual string Generate (System.Data.Entity.Spatial.DbGeography defaultValue);
override this.Generate : System.Data.Entity.Spatial.DbGeography -> string
Protected Overridable Function Generate (defaultValue As DbGeography) As String

Параметры

defaultValue
DbGeography

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(AlterProcedureOperation, IndentedTextWriter)

Создает код для выполнения AlterProcedureOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.AlterProcedureOperation alterProcedureOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.AlterProcedureOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

alterProcedureOperation
AlterProcedureOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(DbGeography)

Создает код для указания значения по умолчанию для столбца DbGeography .

protected virtual string Generate (System.Data.Spatial.DbGeography defaultValue);
override this.Generate : System.Data.Spatial.DbGeography -> string
Protected Overridable Function Generate (defaultValue As DbGeography) As String

Параметры

defaultValue
DbGeography

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(DbGeometry)

Создает код для указания значения по умолчанию для столбца DbGeometry .

protected virtual string Generate (System.Data.Spatial.DbGeometry defaultValue);
override this.Generate : System.Data.Spatial.DbGeometry -> string
Protected Overridable Function Generate (defaultValue As DbGeometry) As String

Параметры

defaultValue
DbGeometry

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(DateTime)

Создает код для указания значения по умолчанию для столбца DateTime .

protected virtual string Generate (DateTime defaultValue);
override this.Generate : DateTime -> string
Protected Overridable Function Generate (defaultValue As DateTime) As String

Параметры

defaultValue
DateTime

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(DateTimeOffset)

Создает код для указания значения по умолчанию для столбца DateTimeOffset .

protected virtual string Generate (DateTimeOffset defaultValue);
override this.Generate : DateTimeOffset -> string
Protected Overridable Function Generate (defaultValue As DateTimeOffset) As String

Параметры

defaultValue
DateTimeOffset

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(Decimal)

Создает код для указания значения по умолчанию для столбца Decimal .

protected virtual string Generate (decimal defaultValue);
override this.Generate : decimal -> string
Protected Overridable Function Generate (defaultValue As Decimal) As String

Параметры

defaultValue
Decimal

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(Guid)

Создает код для указания значения по умолчанию для столбца Guid .

protected virtual string Generate (Guid defaultValue);
override this.Generate : Guid -> string
Protected Overridable Function Generate (defaultValue As Guid) As String

Параметры

defaultValue
Guid

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(DbGeometry)

Создает код для указания значения по умолчанию для столбца DbGeometry .

protected virtual string Generate (System.Data.Entity.Spatial.DbGeometry defaultValue);
override this.Generate : System.Data.Entity.Spatial.DbGeometry -> string
Protected Overridable Function Generate (defaultValue As DbGeometry) As String

Параметры

defaultValue
DbGeometry

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(Object)

Создает код для указания значения по умолчанию для столбца неизвестного типа данных.

protected virtual string Generate (object defaultValue);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")]
protected virtual string Generate (object defaultValue);
override this.Generate : obj -> string
Protected Overridable Function Generate (defaultValue As Object) As String

Параметры

defaultValue
Object

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Атрибуты

Применяется к

Generate(Single)

Создает код для указания значения по умолчанию для столбца Single .

protected virtual string Generate (float defaultValue);
override this.Generate : single -> string
Protected Overridable Function Generate (defaultValue As Single) As String

Параметры

defaultValue
Single

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(String)

Создает код для указания значения по умолчанию для столбца String .

protected virtual string Generate (string defaultValue);
override this.Generate : string -> string
Protected Overridable Function Generate (defaultValue As String) As String

Параметры

defaultValue
String

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(Int64)

Создает код для указания значения по умолчанию для столбца Int64 .

protected virtual string Generate (long defaultValue);
override this.Generate : int64 -> string
Protected Overridable Function Generate (defaultValue As Long) As String

Параметры

defaultValue
Int64

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(TimeSpan)

Создает код для указания значения по умолчанию для столбца TimeSpan .

protected virtual string Generate (TimeSpan defaultValue);
override this.Generate : TimeSpan -> string
Protected Overridable Function Generate (defaultValue As TimeSpan) As String

Параметры

defaultValue
TimeSpan

Значение, используемое в качестве значения по умолчанию.

Возвращаемое значение

Код, представляющий значение по умолчанию.

Применяется к

Generate(IEnumerable<String>, IndentedTextWriter)

Создает код для указания набора имен столбцов с помощью лямбда-выражения.

protected virtual void Generate (System.Collections.Generic.IEnumerable<string> columns, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : seq<string> * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
Protected Overridable Sub Generate (columns As IEnumerable(Of String), writer As IndentedTextWriter)

Параметры

columns
IEnumerable<String>

Столбцы для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(AddColumnOperation, IndentedTextWriter)

Создает код для выполнения AddColumnOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.AddColumnOperation addColumnOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.AddColumnOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

addColumnOperation
AddColumnOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(AddForeignKeyOperation, IndentedTextWriter)

Создает код для выполнения AddForeignKeyOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.AddForeignKeyOperation addForeignKeyOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.AddForeignKeyOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

addForeignKeyOperation
AddForeignKeyOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к

Generate(AddPrimaryKeyOperation, IndentedTextWriter)

Создает код для выполнения AddPrimaryKeyOperation.

protected virtual void Generate (System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation addPrimaryKeyOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
override this.Generate : System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit

Параметры

addPrimaryKeyOperation
AddPrimaryKeyOperation

Операция для создания кода.

writer
IndentedTextWriter

Модуль записи текста, в который добавляется созданный код.

Применяется к