Ensure new HostContentType isn't persisted

This commit is contained in:
Tom Fulton
2014-05-27 15:01:21 -06:00
parent 485c6cb6a1
commit a9dc79e4ff
@@ -31,7 +31,7 @@ namespace Archetype.Models
internal string SerializeForPersistence()
{
var json = JObject.Parse(JsonConvert.SerializeObject(this));
var propertiesToRemove = new String[] { "propertyEditorAlias", "dataTypeId", "dataTypeGuid" };
var propertiesToRemove = new String[] { "propertyEditorAlias", "dataTypeId", "dataTypeGuid", "hostContentType" };
json.Descendants().OfType<JProperty>()
.Where(p => propertiesToRemove.Contains(p.Name))