fix(directory): 🐛 fix path to data files

This commit is contained in:
Collin M. Barrett 2020-09-12 15:12:09 -05:00
parent 164c0888a3
commit 708055f40c

View file

@ -29,7 +29,7 @@ public static void HasDataJsonFile<TEntity>(this EntityTypeBuilder entityTypeBui
{
_ = entityTypeBuilder ?? throw new ArgumentNullException(nameof(entityTypeBuilder));
var path = Path.Combine("../../data", $"{typeof(TEntity).Name}.json");
var path = Path.Combine("../data", $"{typeof(TEntity).Name}.json");
if (!File.Exists(path)) return;
var entitiesJson = File.ReadAllText(path);