소스 검색

Remove EF Core Proxies

Patrick Barron 5 년 전
부모
커밋
befd0c7a00
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 1
      Jellyfin.Data/Jellyfin.Data.csproj
  2. 1 2
      Jellyfin.Server/CoreAppHost.cs

+ 0 - 1
Jellyfin.Data/Jellyfin.Data.csproj

@@ -21,7 +21,6 @@
   <ItemGroup>
   <ItemGroup>
     <PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.5" />
     <PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.5" />
     <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.5" />
     <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.5" />
-    <PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="3.1.5" />
   </ItemGroup>
   </ItemGroup>
 
 
 </Project>
 </Project>

+ 1 - 2
Jellyfin.Server/CoreAppHost.cs

@@ -66,8 +66,7 @@ namespace Jellyfin.Server
             // TODO: Set up scoping and use AddDbContextPool
             // TODO: Set up scoping and use AddDbContextPool
             serviceCollection.AddDbContext<JellyfinDb>(
             serviceCollection.AddDbContext<JellyfinDb>(
                 options => options
                 options => options
-                    .UseSqlite($"Filename={Path.Combine(ApplicationPaths.DataPath, "jellyfin.db")}")
-                    .UseLazyLoadingProxies(),
+                    .UseSqlite($"Filename={Path.Combine(ApplicationPaths.DataPath, "jellyfin.db")}"),
                 ServiceLifetime.Transient);
                 ServiceLifetime.Transient);
 
 
             serviceCollection.AddSingleton<JellyfinDbProvider>();
             serviceCollection.AddSingleton<JellyfinDbProvider>();