Added support for embedding lists of IEmbeddedDocument types.

This commit is contained in:
Keivan Beigi 2013-03-26 15:17:13 -07:00
commit 57120c9eeb
4 changed files with 75 additions and 6 deletions

View file

@ -28,11 +28,6 @@ namespace NzbDrone.Core.Datastore.Converters
{
if (clrValue == null) return null;
if (clrValue as IEmbeddedDocument == null)
{
throw new InvalidOperationException("Attempted to embedded an object not marked with IEmbeddedDocument");
}
var json = JsonConvert.SerializeObject(clrValue);
return json;
}