mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
replaced Json.Serialize with ToJson extension method.
This commit is contained in:
parent
676599c520
commit
8bdf8c31f0
10 changed files with 14 additions and 19 deletions
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using Marr.Data.Converters;
|
||||
using Marr.Data.Mapping;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.Serializer;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Converters
|
||||
|
@ -23,15 +22,14 @@ namespace NzbDrone.Core.Datastore.Converters
|
|||
return null;
|
||||
}
|
||||
|
||||
return Json.Deserialize(stringValue, map.FieldType);
|
||||
return Json.Deserialize(stringValue, map.FieldType);
|
||||
}
|
||||
|
||||
public object ToDB(object clrValue)
|
||||
{
|
||||
if (clrValue == null) return null;
|
||||
|
||||
var json = Json.Serialize(clrValue);
|
||||
return json;
|
||||
return clrValue.ToJson();
|
||||
}
|
||||
|
||||
public Type DbType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue