mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Log page now uses EF for faster runtime queries.
This commit is contained in:
parent
a984060533
commit
c6716f2425
49 changed files with 14898 additions and 555 deletions
22
NzbDrone.Core/Instrumentation/LogDbContext.cs
Normal file
22
NzbDrone.Core/Instrumentation/LogDbContext.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using System.Data.Common;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using Ninject;
|
||||
|
||||
namespace NzbDrone.Core.Instrumentation
|
||||
{
|
||||
public class LogDbContext : DbContext
|
||||
{
|
||||
[Inject]
|
||||
public LogDbContext(DbConnection connection)
|
||||
: base(connection, false)
|
||||
{
|
||||
}
|
||||
|
||||
public LogDbContext()
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<Log> Logs { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue