This is a migrated thread and some comments may be shown as answers.

calculated properties

3 Answers 87 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Issam
Top achievements
Rank 1
Issam asked on 12 Dec 2013, 04:09 PM
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

3 Answers, 1 is accepted

Sort by
0
Issam
Top achievements
Rank 1
answered on 13 Dec 2013, 01:32 PM
wel, it was really simple :

a computed field in my database (firebird)
+ set the Kind property of the mapped property as PersistentReadOnly 
0
Kristian Nikolov
Telerik team
answered on 13 Dec 2013, 03:01 PM
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!
0
Issam
Top achievements
Rank 1
answered on 13 Dec 2013, 06:14 PM
thanks Kristian
Tags
Getting Started
Asked by
Issam
Top achievements
Rank 1
Answers by
Issam
Top achievements
Rank 1
Kristian Nikolov
Telerik team
Share this question
or