init efcore
This commit is contained in:
7
BlueLaminate/BlueLaminate.EFCore/Program.cs
Normal file
7
BlueLaminate/BlueLaminate.EFCore/Program.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using BlueLaminate.EFCore.Data;
|
||||
|
||||
// Build the context the same way the design-time factory does. Run
|
||||
// `dotnet ef database update` to apply migrations to the configured database.
|
||||
using var db = new SkinTrackerDbContextFactory().CreateDbContext(args);
|
||||
|
||||
Console.WriteLine($"CS2 Skin Tracker — {db.Model.GetEntityTypes().Count()} entities mapped.");
|
||||
Reference in New Issue
Block a user