diff options
| author | ivar <i@oiee.no> | 2025-12-03 21:49:20 +0100 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-12-03 21:49:20 +0100 |
| commit | cd70f54266d708867a1eb35870bc755bc5b2df32 (patch) | |
| tree | f0a8ec571ef3f345ac74293b4cb11918878b3ed5 /api/WhatApi/Seed.cs | |
| parent | 5bd9ad8bd1740dcff179d66718532086304ca4c4 (diff) | |
| download | what-cd70f54266d708867a1eb35870bc755bc5b2df32.tar.xz what-cd70f54266d708867a1eb35870bc755bc5b2df32.zip | |
Refactor db
Diffstat (limited to 'api/WhatApi/Seed.cs')
| -rw-r--r-- | api/WhatApi/Seed.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/api/WhatApi/Seed.cs b/api/WhatApi/Seed.cs index 0e8ab59..4b6361e 100644 --- a/api/WhatApi/Seed.cs +++ b/api/WhatApi/Seed.cs @@ -1,18 +1,17 @@ using Bogus; using Bogus.Locations; -using WhatApi.Tables; namespace WhatApi; public static class Seed { - public static void Full(Database db, Action<SeedOptions> seedOptions) { + public static void Full(AppDatabase db, Action<SeedOptions> seedOptions) { var opt = new SeedOptions(); seedOptions.Invoke(opt); Content(db, opt); } - public static void Content(Database db, SeedOptions opt) { + public static void Content(AppDatabase db, SeedOptions opt) { var any = db.Places.Any(); if (any) { if (!opt.ClearTables) return; |
