Expando objects?

Thread is closed for posting
2 posts, 0 answers
  1. gmendez
    gmendez avatar
    82 posts
    Member since:
    Jun 2012

    Posted 23 Sep 2014 Link to this post

    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.

  2. Doroteya
    Doroteya avatar
    498 posts

    Posted 26 Sep 2014 Link to this post

    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.

    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
Back to Top