diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentExtended.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentExtended.cs index d26cb9a390..a85ccda48c 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentExtended.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentExtended.cs @@ -51,7 +51,7 @@ namespace Umbraco.Core.Models.PublishedContent // a model, and then that model has to inherit from PublishedContentExtended, // => implements the internal IPublishedContentExtended. - var model = content.CreateModel2(); + var model = content.CreateModel(); var extended = model == content // == means the factory did not create a model ? new PublishedContentExtended(content) // so we have to extend : model; // else we can use what the factory returned diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentTestElements.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentTestElements.cs index d1ea696244..93c4cb0b8e 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedContentTestElements.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedContentTestElements.cs @@ -32,7 +32,7 @@ namespace Umbraco.Tests.PublishedContent public void Add(SolidPublishedContent content) { - _content[content.Id] = content.CreateModel2(); + _content[content.Id] = content.CreateModel(); } public void Clear() diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs index 9e842c382b..cb22e74395 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs @@ -221,7 +221,7 @@ namespace Umbraco.Tests.PublishedContent var doc = GetNode(1173); var items = doc.Children - .Select(x => x.CreateModel2()) // linq, returns IEnumerable + .Select(x => x.CreateModel()) // linq, returns IEnumerable // only way around this is to make sure every IEnumerable extension // explicitely returns a PublishedContentSet, not an IEnumerable diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs index 298b6f3e46..f3b133a645 100644 --- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs +++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs @@ -242,13 +242,13 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache { return xmlNode == null ? null - : (new XmlPublishedContent(xmlNode, isPreviewing)).CreateModel2(); + : (new XmlPublishedContent(xmlNode, isPreviewing)).CreateModel(); } private static IEnumerable ConvertToDocuments(XmlNodeList xmlNodes, bool isPreviewing) { return xmlNodes.Cast() - .Select(xmlNode => (new XmlPublishedContent(xmlNode, isPreviewing)).CreateModel2()); + .Select(xmlNode => (new XmlPublishedContent(xmlNode, isPreviewing)).CreateModel()); } #endregion diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs index 91b4a205bc..8842715bd3 100644 --- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs +++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs @@ -255,7 +255,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache d => GetChildrenMedia(d.Id), GetProperty, true); - return content.CreateModel2(); + return content.CreateModel(); } internal IPublishedContent ConvertFromXPathNavigator(XPathNavigator xpath) @@ -314,7 +314,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache d => GetChildrenMedia(d.Id, xpath), GetProperty, false); - return content.CreateModel2(); + return content.CreateModel(); } /// diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlPublishedContent.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlPublishedContent.cs index db7f49e731..5450d4063f 100644 --- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlPublishedContent.cs +++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlPublishedContent.cs @@ -338,7 +338,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache if (parent == null) return; if (parent.Name == "node" || (parent.Attributes != null && parent.Attributes.GetNamedItem("isDoc") != null)) - _parent = (new XmlPublishedContent(parent, _isPreviewing, true)).CreateModel2(); + _parent = (new XmlPublishedContent(parent, _isPreviewing, true)).CreateModel(); } private void Initialize() @@ -440,7 +440,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache var iterator = nav.Select(expr); while (iterator.MoveNext()) _children.Add( - (new XmlPublishedContent(((IHasXmlNode)iterator.Current).GetNode(), _isPreviewing, true)).CreateModel2()); + (new XmlPublishedContent(((IHasXmlNode)iterator.Current).GetNode(), _isPreviewing, true)).CreateModel()); // warn: this is not thread-safe _childrenInitialized = true;