Updating DefaultData and ContentControl to better support saving through the new api.

DataTypes doesn't save directly to the db, but keeps the value in-memory so the save can be handled by the new api.
Correcting the usage of versioning in the ContentRepository.
This commit is contained in:
Morten Christensen
2012-12-14 11:43:16 -01:00
parent 22c15bc0ba
commit 0cce4a1a9e
12 changed files with 162 additions and 158 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Linq;
using System.Xml.Linq;
using Umbraco.Core.Configuration;
using Umbraco.Core.Models.Membership;
using Umbraco.Core.Persistence;
using Umbraco.Core.Persistence.Repositories;
@@ -116,7 +117,8 @@ namespace Umbraco.Core.Models
new XAttribute("urlName", niceUrl),//Format Url ?
new XAttribute("writerName", content.GetWriterProfile().Name),
new XAttribute("creatorName", content.GetCreatorProfile().Name),
new XAttribute("path", content.Path));
new XAttribute("path", content.Path),
new XAttribute("isDoc", ""));
foreach (var property in content.Properties)
{