Add a property to table

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 7 años
I am planning to create a plugin but I need to add a property in the blogpost table. How do I that? Can I do it with a partial class?
Hace 7 años
Mange211 wrote:
I am planning to create a plugin but I need to add a property in the blogpost table. How do I that? Can I do it with a partial class?

No, Partial classes have to be in the same assembly so it's not possible from a plugin. The usual approach would be to create a new table for the plugin that has a column for the Id of the blog post that it relates to. Alternatively you could look at using Generic Attributes which can be associated to any other entity type.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.