it ipimiutduioi

This commit is contained in:
MarcEricMartel
2022-10-30 13:58:47 -07:00
parent 8a5b00624e
commit a8bf691e21
13 changed files with 892 additions and 75 deletions

View File

@@ -7,6 +7,10 @@ using Microsoft.EntityFrameworkCore;
#endregion
/// <summary>
/// Service pour copier la BD localement au
/// démarrage de l'API.
/// </summary>
public class DatabaseCacheService {
#region DI
private readonly IServiceScopeFactory _contextFactory; // https://entityframeworkcore.com/knowledge-base/51939451/how-to-use-a-database-context-in-a-singleton-service-