From cd70f54266d708867a1eb35870bc755bc5b2df32 Mon Sep 17 00:00:00 2001 From: ivar Date: Wed, 3 Dec 2025 21:49:20 +0100 Subject: Refactor db --- api/WhatApi/Seed.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'api/WhatApi/Seed.cs') 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) { + public static void Full(AppDatabase db, Action 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; -- cgit v1.3