mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
added Marr.Data.Mapping
This commit is contained in:
parent
4bb4faf626
commit
6dd56114e3
29 changed files with 208 additions and 229 deletions
|
@ -1,11 +1,9 @@
|
|||
using NzbDrone.Core.Datastore;
|
||||
using ServiceStack.DataAnnotations;
|
||||
|
||||
namespace NzbDrone.Core.Configuration
|
||||
{
|
||||
public class Config : ModelBase
|
||||
{
|
||||
[Index(Unique = true)]
|
||||
public string Key { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace NzbDrone.Core.Configuration
|
|||
|
||||
public class ConfigRepository : BasicRepository<Config>, IConfigRepository
|
||||
{
|
||||
public ConfigRepository(IDbConnection database)
|
||||
public ConfigRepository(IDatabase database)
|
||||
: base(database)
|
||||
{
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ namespace NzbDrone.Core.Configuration
|
|||
|
||||
public Config Get(string key)
|
||||
{
|
||||
return SingleOrDefault(c => c.Key == key);
|
||||
return Queryable().SingleOrDefault(c => c.Key == key);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue