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

DateTimeAutosetMode in Designer

1 Answer 72 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John Campion
Top achievements
Rank 1
John Campion asked on 22 Jul 2011, 09:39 PM
Hi,

I'm evaluating OA for a project I'm starting.  The DateTimeAutoSetMode is particularly useful to me.  Is there a way to set this in the Designer or do I have to use Fluent Mapping?

http://www.telerik.com/help/openaccess-orm/topic3073.html

Thanks,
John

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 27 Jul 2011, 02:04 PM
Hello John Campion,

I am afraid that at the moment this option can be enabled only by using Fluent mapping. You will have to use Fluent mapping for all classes containing DateTime properties which should be updated automatically and call the IsCalculatedOn method for each of them:
classConfiguration.HasProperty(c => c.Date).IsCalculatedOn(Telerik.OpenAccess.Metadata.DateTimeAutosetMode.InsertAndUpdate);

Please excuse us for the inconvenience caused. We will try to include this option in the designer for one of the future versions of the product.

Greetings,
Alexander
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Design Time (Visual Designer & Tools)
Asked by
John Campion
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or