Implemetato databese locale con EntityFramework
This commit is contained in:
1 parent
544c9e8237
commit
e7357bd78a
45 files changed
+989
-119
No files matched your search
@@ -0,0 +1,12 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SteUp.Shared.Core.Interface.LocalDb;
|
||||
|
||||
namespace SteUp.Data.LocalDb;
|
||||
|
||||
public class DbInitializer(AppDbContext db) : IDbInitializer
|
||||
{
|
||||
public async Task InitializeAsync()
|
||||
{
|
||||
await db.Database.MigrateAsync();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user