is it possible to create an EF model on the base of a dynamic structure? F.e. i have a Customer, which can have custom fields defined by the administrator of the system. Based on that the customer related custom fields table, is being altered and a new column is added for the new defined field.
Is there any possibility to implement this in the EF model or should i just work without it and make an own implementation to maintain data?
Thanks!
EDIT1: So after checking out the EAV Model i came to the conclusion that it does not quite suit my needs, if i understood it right, since my fields are not dynamic per entity, but the same for all entities. So basically my table structure is like this:
Customer { Id:int, Name:string }
Customer_CustomFields { Id:int, CustomerId:int, UserDefinedName1, UserDefinedName2, ... }
The only thing varying here is the UserDefinedName-Column. The name of the column is set to the name the user defined for the custom field f.e. "CF_RandomInfo". The type of this column changes in dependance of which type the user selected for this custom field (nvarchar(max), float, etc). Also the number of user defined columns is unknown.
I was wondering if i can implement this structure as Contained OpenType into the customer class?