aboutsummaryrefslogtreecommitdiff
path: root/ShareGuard.Web/Database.cs
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-12-25 19:59:26 +0100
committerTim <contact@bytim.eu>2025-12-25 19:59:26 +0100
commit771b949618bb4e07c09c2fb94a7f92e13f471b9e (patch)
tree88c2e69fc14bef91e414c605712420437cc92ccf /ShareGuard.Web/Database.cs
Initial commitHEADmaster
Diffstat (limited to 'ShareGuard.Web/Database.cs')
-rw-r--r--ShareGuard.Web/Database.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/ShareGuard.Web/Database.cs b/ShareGuard.Web/Database.cs
new file mode 100644
index 0000000..ceeed60
--- /dev/null
+++ b/ShareGuard.Web/Database.cs
@@ -0,0 +1,14 @@
+using Microsoft.EntityFrameworkCore;
+using ShareGuard.Web.DbModels;
+
+namespace ShareGuard.Web;
+
+public class Database : DbContext
+{
+ public DbSet<Link> Links { get; set; }
+
+ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+ {
+ optionsBuilder.UseSqlite("Data Source=shareguard.db");
+ }
+} \ No newline at end of file