How to set up a custom column to calculate in database

2 posts, 0 answers
  1. Braden
    Braden avatar
    12 posts
    Member since:
    Oct 2012

    Posted 06 Mar 2013 Link to this post

    Is there a way to define a custom column on a table to calculate it's value in the database that could then be queryable/sortable/etc.?  It appears that hibernate provides this sort of functionality and so far I haven't been able to find anything like this in OpenAccess.  http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html/mapping.html#d0e6481
  2. Ady
    Admin
    Ady avatar
    589 posts

    Posted 08 Mar 2013 Link to this post

    Hello Braden,

      At the moment OpenAccess does not have a similar functionality. The closest you can get to influencing the generated SQL is the 'SQL<T>' extension method. You can find a blog post of how to use it, here.
     

    Kind regards,
    Ady
    the Telerik team
    OpenAccess ORM Q1 2013 is out featuring Multi-Diagrams, Persistent Data Stream Support and much more. Check out all of the latest highlights.
  3. DevCraft banner
Back to Top