SqlServerDatabaseCreator SqlServerDatabaseCreator Class

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Syntax

Declaration

public class SqlServerDatabaseCreator : RelationalDatabaseCreator, IRelationalDatabaseCreator, IDatabaseCreator, IServiceInjectionSitePublic Class SqlServerDatabaseCreator
    Inherits RelationalDatabaseCreator
    Implements IRelationalDatabaseCreator, IDatabaseCreator, IServiceInjectionSite

Inheritance Hierarchy

Inherited Members

Model,
Model,
Connection,
Connection,
MigrationCommandExecutor,
MigrationCommandExecutor,
ExecutionStrategyFactory,
ExecutionStrategyFactory,
IServiceInjectionSite.InjectServices(IServiceProvider),
Microsoft.EntityFrameworkCore.Internal.IServiceInjectionSite.InjectServices(IServiceProvider),
CreateTables(),
CreateTables(),
CreateTablesAsync(CancellationToken),
CreateTablesAsync(CancellationToken),
GetCreateTablesCommands(),
GetCreateTablesCommands(),
EnsureDeleted(),
EnsureDeleted(),
EnsureDeletedAsync(CancellationToken),
EnsureDeletedAsync(CancellationToken),
EnsureCreated(),
EnsureCreated(),
EnsureCreatedAsync(CancellationToken),
EnsureCreatedAsync(CancellationToken),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Methods summary

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Constructors

  • SqlServerDatabaseCreator(ISqlServerConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, IModel, IRawSqlCommandBuilder, IExecutionStrategyFactory)
    SqlServerDatabaseCreator(ISqlServerConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, IModel, IRawSqlCommandBuilder, IExecutionStrategyFactory)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public SqlServerDatabaseCreator(ISqlServerConnection connection, IMigrationsModelDiffer modelDiffer, IMigrationsSqlGenerator migrationsSqlGenerator, IMigrationCommandExecutor migrationCommandExecutor, IModel model, IRawSqlCommandBuilder rawSqlCommandBuilder, IExecutionStrategyFactory executionStrategyFactory)Public Sub New(connection As ISqlServerConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, model As IModel, rawSqlCommandBuilder As IRawSqlCommandBuilder, executionStrategyFactory As IExecutionStrategyFactory)

    Parameters

Methods

  • Create()
    Create()

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public override void Create()Public Overrides Sub Create
  • CreateAsync(CancellationToken)
    CreateAsync(CancellationToken)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public override Task CreateAsync(CancellationToken cancellationToken = null)Public Overrides Function CreateAsync(cancellationToken As CancellationToken = Nothing) As Task

    Parameters

    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task
      System.Threading.Tasks.Task
  • Delete()
    Delete()

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public override void Delete()Public Overrides Sub Delete
  • DeleteAsync(CancellationToken)
    DeleteAsync(CancellationToken)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public override Task DeleteAsync(CancellationToken cancellationToken = null)Public Overrides Function DeleteAsync(cancellationToken As CancellationToken = Nothing) As Task

    Parameters

    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task
      System.Threading.Tasks.Task
  • Exists()
    Exists()

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public override bool Exists()Public Overrides Function Exists As Boolean

    Returns

    • System.Boolean
      System.Boolean
  • ExistsAsync(CancellationToken)
    ExistsAsync(CancellationToken)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public override Task<bool> ExistsAsync(CancellationToken cancellationToken = null)Public Overrides Function ExistsAsync(cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

    Parameters

    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Boolean>
      System.Threading.Tasks.Task<TResult>(Of System.Boolean)
  • HasTables()
    HasTables()

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    protected override bool HasTables()Protected Overrides Function HasTables As Boolean

    Returns

    • System.Boolean
      System.Boolean
  • HasTablesAsync(CancellationToken)
    HasTablesAsync(CancellationToken)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    protected override Task<bool> HasTablesAsync(CancellationToken cancellationToken = null)Protected Overrides Function HasTablesAsync(cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

    Parameters

    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Boolean>
      System.Threading.Tasks.Task<TResult>(Of System.Boolean)

Details

Assembly

Microsoft.EntityFrameworkCore.SqlServer.dll