Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 05fa0fc

Browse files
committed
Aggiornata documentazione
1 parent ee8838c commit 05fa0fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/CustomLibrary.EFCore/Docs/DBContextPoolRegistrationDifferentDatabases.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ public void ConfigureServices(IServiceCollection services)
1616
services.AddDbContextServicesGenerics<MyDbContext>();
1717

1818
//if you use MySQL database
19-
services.AddDbContextForMySql(connectionString, retryOnFailure, migrationsAssembly);
19+
services.AddDbContextForMySql<MyDbContext>(connectionString, retryOnFailure, migrationsAssembly);
2020

2121
//if you use PostgreSQL database
22-
services.AddDbContextForPostgres(connectionString, retryOnFailure, migrationsAssembly);
22+
services.AddDbContextForPostgres<MyDbContext>(connectionString, retryOnFailure, migrationsAssembly);
2323

2424
//if you use SQLServer database
25-
services.AddDbContextForSQLServer(connectionString, retryOnFailure, migrationsAssembly);
25+
services.AddDbContextForSQLServer<MyDbContext>(connectionString, retryOnFailure, migrationsAssembly);
2626

2727
//if you use SQLite database but in this case the retryOnFailure is not necessary as SQLite is not subject to transient errors
28-
services.AddDbContextForSQLite(connectionString, migrationsAssembly);
28+
services.AddDbContextForSQLite<MyDbContext>(connectionString, migrationsAssembly);
2929
}
3030
```
3131

src/CustomLibrary.EFCore/Docs/DBContextRegistrationDatabases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public void ConfigureServices(IServiceCollection services)
1111
string migrationsAssembly = "MyAssembly.Migrations.MySQLDatabase";
1212

1313
services.AddDbContextServicesGenerics<MyDbContext>();
14-
services.AddDbContextNoPoolSQLServer(connectionString, migrationsAssembly);
14+
services.AddDbContextNoPoolSQLServer<MyDbContext>(connectionString, migrationsAssembly);
1515
}
1616
```
1717

0 commit comments

Comments
 (0)