mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
added Marr.Data.Mapping
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user