mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
moved db to folder
This commit is contained in:
+3
-1
@@ -2,4 +2,6 @@ bin/
|
|||||||
obj/
|
obj/
|
||||||
/packages/
|
/packages/
|
||||||
riderModule.iml
|
riderModule.iml
|
||||||
/_ReSharper.Caches/
|
/_ReSharper.Caches/
|
||||||
|
**/app.db*
|
||||||
|
**/.idea
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public class BarkContext : DbContext
|
|||||||
{
|
{
|
||||||
var folder = Environment.SpecialFolder.LocalApplicationData;
|
var folder = Environment.SpecialFolder.LocalApplicationData;
|
||||||
var path = Environment.GetFolderPath(folder);
|
var path = Environment.GetFolderPath(folder);
|
||||||
DbPath = "./app.db";
|
DbPath = "./database/app.db";
|
||||||
}
|
}
|
||||||
|
|
||||||
// The following configures EF to create a Sqlite database file in the
|
// The following configures EF to create a Sqlite database file in the
|
||||||
|
|||||||
Reference in New Issue
Block a user