-
Notifications
You must be signed in to change notification settings - Fork 0
DatabaseTypeExtensions.GetDatabaseType
| Overloads | |
|---|---|
| GetDatabaseType(this DbContextOptionsBuilder) | Gets the type of database in use from a Microsoft.EntityFrameworkCore.DbContextOptionsBuilder object. |
| GetDatabaseType(this DatabaseFacade) | Gets the type of database in use from a Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade object. |
| GetDatabaseType(this MigrationBuilder) | Gets the type of database in use from a Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder object. |
Gets the type of database in use from a Microsoft.EntityFrameworkCore.DbContextOptionsBuilder object.
public static string? GetDatabaseType(this Microsoft.EntityFrameworkCore.DbContextOptionsBuilder optionsBuilder);optionsBuilder Microsoft.EntityFrameworkCore.DbContextOptionsBuilder
A builder used to create or modify options for this context.
System.String
System.String with the database type or null if none recognised.
Gets the type of database in use from a Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade object.
public static string? GetDatabaseType(this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade database);database Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade
The Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade for the context.
System.String
System.String with the database type or null if none recognised.
Gets the type of database in use from a Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder object.
public static string? GetDatabaseType(this Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder builder);builder Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder
The migration builder.
System.String
System.String with the database type or null if none recognised.