calculated properties

4 posts, 0 answers
  1. Issam
    Issam avatar
    18 posts
    Member since:
    Sep 2008

    Posted 12 Dec 2013 Link to this post

    hi ,

    i have a "birthday" column in my database mapped in my WPF application

    now ,what's the best way to create a calculated property "Age" that can be bound in my UI ?

    thanks and good day
  2. Issam
    Issam avatar
    18 posts
    Member since:
    Sep 2008

    Posted 13 Dec 2013 Link to this post

    wel, it was really simple :

    a computed field in my database (firebird)
    + set the Kind property of the mapped property as PersistentReadOnly 
  3. DevCraft banner
  4. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 13 Dec 2013 Link to this post

    Hi Issam,

    Indeed this is the correct approach to map a calculated column to a property. I am glad you have resolved the situation.

    If you have any more questions, feel free to post in our forums again.

    Regards,
    Kristian Nikolov
    Telerik
    OpenAccess ORM Q3 2013 simplifies your model operations even further providing you with greater flexibility. Check out the list of new features shipped with our latest release!
  5. Issam
    Issam avatar
    18 posts
    Member since:
    Sep 2008

    Posted 13 Dec 2013 Link to this post

    thanks Kristian
Back to Top