aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Search
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-05-23 12:33:27 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-05-23 12:44:23 -0500
commitea78f7f0c5b0858f15a1af8a700100d7ae101ae1 (patch)
treee80b630134f8ce909112b51253acfd1dcd04bdb5 /src/slskd/Core/Search
parent7588c5d8281213de2714d817c7e861cc5fb661e7 (diff)
downloadslskd-ea78f7f0c5b0858f15a1af8a700100d7ae101ae1.tar.gz
add SearchDbContext
Diffstat (limited to 'src/slskd/Core/Search')
-rw-r--r--src/slskd/Core/Search/SearchDbContext.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/slskd/Core/Search/SearchDbContext.cs b/src/slskd/Core/Search/SearchDbContext.cs
new file mode 100644
index 00000000..4832bc17
--- /dev/null
+++ b/src/slskd/Core/Search/SearchDbContext.cs
@@ -0,0 +1,31 @@
+// <copyright file="SearchDbContext.cs" company="slskd Team">
+// Copyright (c) slskd Team. All rights reserved.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see https://www.gnu.org/licenses/.
+// </copyright>
+
+namespace slskd.Search
+{
+ using Microsoft.EntityFrameworkCore;
+
+ public class SearchDbContext : DbContext
+ {
+ public SearchDbContext(DbContextOptions<SearchDbContext> options)
+ : base(options)
+ {
+ }
+
+ public DbSet<Search> Searches { get; set; }
+ }
+}