Search code examples
dotnetnukecode-first2sxc

How can I edit 2sxc entity structure, like add property, change property type etc. programmatically via C# code?


I need to update entities programmatically via C# code. I have some code already that creates IApp object of the target 2sxc app. From there I've been reading data via appObject.Data["MyEntityType"].List.

But what I want to do is I want to access entity type and be able to add/delete/update properties and change data structure programmatically, not the data itself.


Solution

  • Since it's not possible ATM, but will probably become more and more important, I suggest you create an issue describing exactly what the need is, why, and how much the API should enable you to do, so we can probably schedule it for v19