Use file-scoped namespace in db context

This commit is contained in:
Patrick Barron 2023-01-16 10:06:25 -05:00
parent 921618368b
commit 2a86723caf

View File

@ -8,11 +8,11 @@ using Jellyfin.Data.Entities.Security;
using Jellyfin.Data.Interfaces; using Jellyfin.Data.Interfaces;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Jellyfin.Server.Implementations namespace Jellyfin.Server.Implementations;
/// <inheritdoc/>
public class JellyfinDb : DbContext
{ {
/// <inheritdoc/>
public class JellyfinDb : DbContext
{
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="JellyfinDb"/> class. /// Initializes a new instance of the <see cref="JellyfinDb"/> class.
/// </summary> /// </summary>
@ -157,5 +157,4 @@ namespace Jellyfin.Server.Implementations
// Configuration for each entity is in it's own class inside 'ModelConfiguration'. // Configuration for each entity is in it's own class inside 'ModelConfiguration'.
modelBuilder.ApplyConfigurationsFromAssembly(typeof(JellyfinDb).Assembly); modelBuilder.ApplyConfigurationsFromAssembly(typeof(JellyfinDb).Assembly);
} }
}
} }