More in this section

Forums / General Discussions / Inherit ContentItem and persist to database?

Inherit ContentItem and persist to database?

2 posts, 0 answered
  1. bemara57
    bemara57 avatar
    135 posts
    27 Mar 2008
    30 Dec 2010
    Link to this post
    Is it possible to inherit from ContentItem and get persistence automatically wired up?

    I want to persist a derived class in its own table and add some extra properties. I want to inherit because I also want to get comments, security, workflow, etc already wired up for my derived class.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    31 Dec 2010
    Link to this post
    Hi bemara57,

    You can inherit from ContentItem and use the built-in dynamic custom fields. If you want to persist some data in a separate table you need to create your own persistence class for the properties you are going to add.

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered