HistoryRepository.GetBeginIfNotExistsScript(String) Method

Definition

Overridden by database providers to generate a SQL Script that will BEGIN a block of SQL if and only if the migration with the given identifier does not already exist in the history table.

C#
public abstract string GetBeginIfNotExistsScript (string migrationId);

Parameters

migrationId
String

The migration identifier.

Returns

The generated SQL.

Implements

Applies to

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0