Are Custom Columns/Tables Supported by AOP Automatically?

2 posts, 0 answers
  1. Ying
    Ying avatar
    3 posts
    Member since:
    Jul 2010

    Posted 03 Aug 2010 Link to this post

    For ORM classes, it is common to add custom columns, even tables after deployment. I do know OpenAccess has artificial fields and types. But artificial fields/types are different with pre-defined ones, especially when you want to use LINQ on them.

    I know OpenAccess has some AOP function built in. For OpenAccess supports for legacy database schemes, it should be very easy to extend ORM classes by adding extra corresponding properties, even extra corresponding classes at RUN TIME, at least before loading, by the help of AOP. I mean without touch to any source code at loading time or at run time.

    In other words, the entity classes can be upgraded at run time without touch the source code. One scenario is I won't release source code to clients, but allow them to extend the database model(tables and columns) after deployment.

    I searched this website and the manual and I couldn't find this feature.

    Can someone confirm it? Of course, it is better to show how to do it.

    Thank you in advance,

    Ying
  2. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 06 Aug 2010 Link to this post

    Hi Ying,

    In this case the only approach you could use is the Artificial Fields mechanism. The Enhancer should be aware of all changes made to the model in runtime and this can be achieved only with artificial fields.

    Greetings,
    Damyan Bogoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top