DateTimeAutosetMode in Designer

2 posts, 0 answers
  1. John Campion
    John Campion avatar
    2 posts
    Member since:
    Jan 2006

    Posted 22 Jul 2011 Link to this post


    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?

  2. Alexander
    Alexander avatar
    727 posts

    Posted 27 Jul 2011 Link to this post

    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.

    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!

  3. DevCraft banner
Back to Top