This is a migrated thread and some comments may be shown as answers.
Expando objects?
1 Answer 7 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
gmendez
Top achievements
Rank 1
gmendez asked on 23 Sep 2014, 03:07 PM
Hi! I wish to dynamically properties to some of my persistent objects (Right now I'm working with the model approach).
However, I would rather prefer not to change the schema. The reason is simple: I'm developing a web application and each customer could want to add different properties to different objects.
I was wondering which could be the best approach to this requirement with Data Access. Mapping a to a dictionary maybe? Or a dynamic (expando) object? Don't even know if that's supported.
Thanks!!

Gonzalo

1 Answer, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 26 Sep 2014, 07:59 AM
Hi Gonzalo,

Telerik Data Access supports the scenario you need implement. It does so though its Artificial Types API. This API is based on the code-only mapping approach, and allows you to create, modify, query and delete types during the application's runtime. You can see it in action in the Consuming Types Defined During Runtime sample in our Samples Kit. The scenario demonstrated in the sample is very close to the result you need to achieve.

I hope this helps. If you need further information, do not hesitate to get back to us.



Regards,
Doroteya
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
Tags
Design Time (Visual Designer & Tools)
Asked by
gmendez
Top achievements
Rank 1
Answers by
Doroteya
Telerik team
Share this question
or