diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-05-23 12:33:27 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-05-23 12:44:23 -0500 |
| commit | ea78f7f0c5b0858f15a1af8a700100d7ae101ae1 (patch) | |
| tree | e80b630134f8ce909112b51253acfd1dcd04bdb5 /src/slskd/Core | |
| parent | 7588c5d8281213de2714d817c7e861cc5fb661e7 (diff) | |
| download | slskd-ea78f7f0c5b0858f15a1af8a700100d7ae101ae1.tar.gz | |
add SearchDbContext
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Search/SearchDbContext.cs (renamed from src/slskd/Core/DbContext.cs) | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/slskd/Core/DbContext.cs b/src/slskd/Core/Search/SearchDbContext.cs index ba4e50a6..4832bc17 100644 --- a/src/slskd/Core/DbContext.cs +++ b/src/slskd/Core/Search/SearchDbContext.cs @@ -1,4 +1,4 @@ -// <copyright file="DbContext.cs" company="slskd Team"> +// <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 @@ -15,18 +15,17 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd +namespace slskd.Search { using Microsoft.EntityFrameworkCore; - using slskd.Search; - public class AppDbContext : DbContext + public class SearchDbContext : DbContext { - public AppDbContext(DbContextOptions<AppDbContext> options) + public SearchDbContext(DbContextOptions<SearchDbContext> options) : base(options) { } - public DbSet<Search.Search> Searches { get; set; } + public DbSet<Search> Searches { get; set; } } } |
