diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-05-23 12:26:31 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-05-23 12:44:22 -0500 |
| commit | 2ed141e2f55207cce5ab80acc8477402fd5aae94 (patch) | |
| tree | 10bc10b983c637656cb628c242abba4cef3c9307 /src/slskd/Core/DbContext.cs | |
| parent | c72d7088ce6d39193ae1a80f2808e34d07e6078f (diff) | |
| download | slskd-2ed141e2f55207cce5ab80acc8477402fd5aae94.tar.gz | |
add DbContext and domain for search
Diffstat (limited to 'src/slskd/Core/DbContext.cs')
| -rw-r--r-- | src/slskd/Core/DbContext.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/slskd/Core/DbContext.cs b/src/slskd/Core/DbContext.cs new file mode 100644 index 00000000..ba4e50a6 --- /dev/null +++ b/src/slskd/Core/DbContext.cs @@ -0,0 +1,32 @@ +// <copyright file="DbContext.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 +{ + using Microsoft.EntityFrameworkCore; + using slskd.Search; + + public class AppDbContext : DbContext + { + public AppDbContext(DbContextOptions<AppDbContext> options) + : base(options) + { + } + + public DbSet<Search.Search> Searches { get; set; } + } +} |
