feat(dir): add InitialSeedData ef migration

This commit is contained in:
Collin Barrett 2024-06-01 18:12:52 -05:00
parent 6268928f07
commit 2e042a3601
4 changed files with 250869 additions and 1 deletions

View file

@ -28,7 +28,7 @@ public static void HasDataJsonFile<TEntity>(this OwnedNavigationBuilder ownedNav
private static List<TEntity> Deserialize<TEntity>()
{
// uncomment to short-circuit HasData() when adding a migration
return new List<TEntity>();
// return new List<TEntity>();
var path = Path.Combine("../data", $"{typeof(TEntity).Name}.json");
if (!File.Exists(path)) return [];