Developer forum

Forum » Development » CodeFirst items inheritance

CodeFirst items inheritance

Casper Andersen
Reply

Hello Dynamicweb

 

At the moment i am playing around with creating items with a codefirst approach.

With this i'm having a couple of issues.

 

1. I store my items inside the Content folder and my code for that looks like this [Category("Content")] which works fine.

But inside the category folder there is an item type called Layout which all my other items inherit from, is it possible to inherit from this itemtype even if i created it with a non codefirst approach?

 

2. I have an item that has been doing some work on a page, and this i want to extend with some more properties, and i also want to be able to create new paragraphs containig this item. Is it possible to do a codefirst apporach on an existing item and not have everything associated with that item deleted, and if so how should i go about it?
 

Hope this makes sense

 

Regards Casper Andersen


Replies

 

You must be logged in to post in the forum