Skip to content

Commit 7cd6dc9

Browse files
committed
Fixed name of ContentTypeDescriptor content type
Since we removed the legacy `ContentType` classes, the database(s) need to be updated to use `ContentType=ContentTypeDescriptor` instead of `ContentType=ContentType`. This wasn't accounted for in the `GetContentTypeDescriptors()` method.
1 parent 5f43dd6 commit 7cd6dc9

7 files changed

Lines changed: 22 additions & 19 deletions

File tree

Ignia.Topics.Data.Caching/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
[assembly: AssemblyTrademark("")]
2222
[assembly: AssemblyCulture("")]
2323
[assembly: ComVisible(false)]
24-
[assembly: AssemblyVersion("3.5.1743.0")]
25-
[assembly: AssemblyFileVersion("3.5.1775.0")]
24+
[assembly: AssemblyVersion("3.5.1745.0")]
25+
[assembly: AssemblyFileVersion("3.5.1777.0")]
2626
[assembly: CLSCompliant(true)]
2727
[assembly: Guid("206b7f91-ca25-4e9d-9576-60d2e54a2c0a")]
2828

Ignia.Topics.Data.Sql/SqlTopicRepository.cs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,22 +282,25 @@ public override ContentTypeDescriptorCollection GetContentTypeDescriptors() {
282282
\---------------------------------------------------------------------------------------------------------------------*/
283283
var configuration = Load("Configuration");
284284

285-
/*--------------------------------------------------------------------------------------------------------------------
285+
/*----------------------------------------------------------------------------------------------------------------------
286286
| Add available Content Types to the collection
287-
\-------------------------------------------------------------------------------------------------------------------*/
287+
\---------------------------------------------------------------------------------------------------------------------*/
288288
_contentTypeDescriptors = new ContentTypeDescriptorCollection();
289289

290-
/*--------------------------------------------------------------------------------------------------------------------
290+
/*----------------------------------------------------------------------------------------------------------------------
291291
| Ensure the parent ContentTypes topic is available to iterate over
292-
\-------------------------------------------------------------------------------------------------------------------*/
292+
\---------------------------------------------------------------------------------------------------------------------*/
293293
if (configuration.Children.GetTopic("ContentTypes") == null) {
294294
throw new Exception("Unable to load section Configuration:ContentTypes.");
295295
}
296296

297-
/*--------------------------------------------------------------------------------------------------------------------
297+
/*----------------------------------------------------------------------------------------------------------------------
298298
| Add available Content Types to the collection
299-
\-------------------------------------------------------------------------------------------------------------------*/
300-
foreach (var topic in configuration.Children.GetTopic("ContentTypes").FindAllByAttribute("ContentType", "ContentType")) {
299+
\---------------------------------------------------------------------------------------------------------------------*/
300+
foreach (
301+
var topic in
302+
configuration.Children.GetTopic("ContentTypes").FindAllByAttribute("ContentType", nameof(ContentTypeDescriptor))
303+
) {
301304
// Ensure the Topic is used as the strongly-typed ContentType
302305
// Add ContentType Topic to collection if not already added
303306
if (

Ignia.Topics.Tests/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[assembly: AssemblyTrademark("")]
2222
[assembly: AssemblyCulture("")]
2323
[assembly: ComVisible(false)]
24-
[assembly: AssemblyVersion("3.5.1763.0")]
25-
[assembly: AssemblyFileVersion("3.5.1811.0")]
24+
[assembly: AssemblyVersion("3.5.1765.0")]
25+
[assembly: AssemblyFileVersion("3.5.1813.0")]
2626
[assembly: CLSCompliant(true)]
2727
[assembly: Guid("27632801-bfe3-41d9-8678-3c4bbe45e6c9")]

Ignia.Topics.ViewModels/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
[assembly: AssemblyTrademark("")]
2222
[assembly: AssemblyCulture("")]
2323
[assembly: ComVisible(false)]
24-
[assembly: AssemblyVersion("3.5.1744.0")]
25-
[assembly: AssemblyFileVersion("3.5.1775.0")]
24+
[assembly: AssemblyVersion("3.5.1746.0")]
25+
[assembly: AssemblyFileVersion("3.5.1777.0")]
2626
[assembly: CLSCompliant(true)]
2727
[assembly: Guid("e52fc633-b4c5-4a2b-8caf-30e756d7a6a7")]
2828

Ignia.Topics.Web.Mvc/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[assembly: AssemblyTrademark("")]
2222
[assembly: AssemblyCulture("")]
2323
[assembly: ComVisible(false)]
24-
[assembly: AssemblyVersion("3.5.1748.0")]
25-
[assembly: AssemblyFileVersion("3.5.1780.0")]
24+
[assembly: AssemblyVersion("3.5.1750.0")]
25+
[assembly: AssemblyFileVersion("3.5.1782.0")]
2626
[assembly: CLSCompliant(true)]
2727
[assembly: Guid("3b3ce34d-b5e5-47ca-bfef-e6740650f378")]

Ignia.Topics.Web/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[assembly: AssemblyTrademark("")]
2222
[assembly: AssemblyCulture("")]
2323
[assembly: ComVisible(false)]
24-
[assembly: AssemblyVersion("3.5.1742.0")]
25-
[assembly: AssemblyFileVersion("3.5.1766.0")]
24+
[assembly: AssemblyVersion("3.5.1744.0")]
25+
[assembly: AssemblyFileVersion("3.5.1768.0")]
2626
[assembly: CLSCompliant(true)]
2727
[assembly: Guid("c98f7b48-a085-4394-b820-c244f23868ce")]

Ignia.Topics/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
[assembly: AssemblyTrademark("")]
2323
[assembly: AssemblyCulture("")]
2424
[assembly: ComVisible(false)]
25-
[assembly: AssemblyVersion("3.5.1743.0")]
26-
[assembly: AssemblyFileVersion("3.5.1775.0")]
25+
[assembly: AssemblyVersion("3.5.1745.0")]
26+
[assembly: AssemblyFileVersion("3.5.1777.0")]
2727
[assembly: InternalsVisibleTo("Ignia.Topics.Tests")]
2828
[assembly: CLSCompliant(true)]
2929
[assembly: GuidAttribute("3CA9F6CB-B45A-4E74-AAA4-0C87CAA2704F")]

0 commit comments

Comments
 (0)