Guys,
I've seen a few posts almost touch on the subject but not one that answers my design issue. If there is one out there, my apologies.
My application requires that the user can create new 'attributes' and their associated 'values' for certain predefined entities. This means that some entity attributes will be defined at design-time and many others at run-time by the end user.
My question is how to best implement the dynamic entity attributes within the LLBLGen framework. My initial table design of the dynamic attributes is as follows. Also, I plan on using the extended Entity 3rd party templates to help with a hybrid of the Domain and Manager models.
Table: EntityProperty
Columns: EntityPropertyID (PK), EntityName (Table Name), EntityKeyID (FK to many unlinked tables), EntityPropertyValueID(FK)
Table:EntityPropertyValue
Columns: EntityPropertyValueID(PK), EntityPropertyGroupID(FK), Number, Text, Value, Date, Bit (Most common data types to store property value)
Table: EntityPropertyGroup (not really needed for discussion but it will help group Values for comboboxes, etc)
Columns: EntityPropertyGroupID(PK), Name
Now, in the article below, Frans mentioned having multiple entities per table. I think this is what I'm trying to achieve in a sense, although forgive me for not understanding his post at first glance.
http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=694
I assume I will have to override both the Create and Save and maintain the custom attributes myself. But before I dive into the code, I wanted to see what you guys thought.
Thanks
Jeff