articles

Introducing the CustomPropertyDbEx for MCMS 2002 Develoeprs

CustomPropertyDbEx enhances content management by migrating custom properties of channels, templates, and postings to a database, retaining CMS linkage.

Introducing the CustomPropertyDbEx for MCMS 2002 Develoeprs
by Andrew Connell

Last updated November 11, 2004
2 minutes read

Share this

Focus Mode

  • Feedback & questions

Simply put, CustomPropertyDbEx takes the custom properties you can create and assign to channels, templates, and postings and moves from from the CMS environment out to a database while maintaining a close link between the CMS asset and the custom properties.

There are downsides with the current CustomProperty implementation in the CMS PAPI, such as:

  • Every CMS developer knows (or should know) that you should never use the searching methods for CustomProperties in the CMS PAPI as they have a huge performance hit associated with them.
  • You can not create CustomProperties on the fly for channels… you can only create them in Site Manager.
  • CustomProperties are limited to name-value text pairs; you can’t save objects or lists without some sort of a work-around.

That’s just a few of them. What I’ve done is build a tiny database schema consisting of a table and a handful of stored procedures and a lightweight assembly to manage the logic of maintaining and accessing CustomProperties in a database. The naming conventions and schema are fairly similar to the CMS PAPI naming conventions.

I’ve written an article explaining the CustomPropertyDbEx as well as some code examples, sample applications, and help files… you can read about it here. Or you can just download the solution below which includes the database DDL scripts, sample console project, and the CustomPropertyDbEx assembly. They were in source control, so you’ll get some errors when opening the solution. Just click though them.

Check the following post for an updated version of the project: CustomPropertyDbEx v2 Released

Andrew Connell, Microsoft MVP, Full-Stack Developer & Chief Course Artisan - Voitanos LLC.
author
Andrew Connell

Microsoft MVP, Full-Stack Developer & Chief Course Artisan - Voitanos LLC.

Andrew Connell is a full stack developer who focuses on Microsoft Azure & Microsoft 365. He’s a 20+ year recipient of Microsoft’s MVP award and has helped thousands of developers through the various courses he’s authored & taught. Whether it’s an introduction to the entire ecosystem, or a deep dive into a specific software, his resources, tools, and support help web developers become experts in the Microsoft 365 ecosystem, so they can become irreplaceable in their organization.

Feedback & Questions

newsletter

Join 10,000+ developers for news & insights

No clickbait · 100% free · Unsubscribe anytime.

    Subscribe to Andrew's newsletter for insights & stay on top of the latest news in the Microsoft 365 Space!
    blurry dot in brand primary color
    found this article helpful?

    You'll love these!

    Challenges with Creating Channels On-the-Fly in CMS Project

    Challenges with Creating Channels On-the-Fly in CMS Project

    November 11, 2004

    Read now

    Choosing a Primary Point of Entry for SharePoint and CMS

    Choosing a Primary Point of Entry for SharePoint and CMS

    October 27, 2004

    Read now

    Differences Between SharePoint and Content Management Server

    Differences Between SharePoint and Content Management Server

    October 26, 2004

    Read now

    bi-weekly newsletter

    Join 10,000+ Microsoft 365 full-stack web developers for news, insights & resources. 100% free.

    Subscribe to Andrew's newsletter for insights & stay on top of the latest news in the Microsoft 365 ecosystem!

    No clickbait · 100% free · Unsubscribe anytime.

      Subscribe to Andrew's newsletter for insights & stay on top of the latest news in the Microsoft 365 Space!