From c6a54ee2e1c2d826ebac9cc053b74843d112d0a9 Mon Sep 17 00:00:00 2001 From: Drew Rautenberg Date: Sun, 12 Jan 2025 20:05:30 -0600 Subject: [PATCH] moved db to folder --- .gitignore | 4 +++- barkmanAPI/barkDbModel.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index add57be..06fe016 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ bin/ obj/ /packages/ riderModule.iml -/_ReSharper.Caches/ \ No newline at end of file +/_ReSharper.Caches/ +**/app.db* +**/.idea diff --git a/barkmanAPI/barkDbModel.cs b/barkmanAPI/barkDbModel.cs index fc9e1d3..84799d7 100644 --- a/barkmanAPI/barkDbModel.cs +++ b/barkmanAPI/barkDbModel.cs @@ -12,7 +12,7 @@ public class BarkContext : DbContext { var folder = Environment.SpecialFolder.LocalApplicationData; var path = Environment.GetFolderPath(folder); - DbPath = "./app.db"; + DbPath = "./database/app.db"; } // The following configures EF to create a Sqlite database file in the