Changing Default Load Behavior

5 posts, 1 answers
  1. Kyle T.
    Kyle T. avatar
    16 posts
    Member since:
    Dec 2011

    Posted 03 May 2012 Link to this post

    Telerik

    Is it possible to change the "Default" Load Behavior for a SQL data type?  

    We have a model that has many DateTimeOffset fields (2 per table, 30+ tables). When we generated a WCF Plain Service model service we noticed these fields were not being populated at the client unless we changed the Load Behavior for the DateTimeOffset fields from "Default" to "Eager".  We would like to be able to change the default from "Lazy" to "Eager" rather than make this change by hand per table per model.

    Thanks,
    Kyle
  2. Answer
    Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 03 May 2012 Link to this post

    Hello Kyle,

    I am afraid that the default values cannot be changed at the moment. However, you could use the Batch Operations dialog to update the load behavior for all needed properties with only one action.

    This can be done with the following steps:
    • Open the Batch Operations dialog and switch to Members view;
    • Open the Column expander on the left side and filter the members by SQL type;
    • Select all members in the grid, or just the ones that need to be updated;
    • Select the Change Loading Behavior operation from the combobox on the right and set a new value (Eager);
    • Click Execute and close the dialog;

    Hope that helps.

    All the best,
    Alexander
    the Telerik team
    Follow @OpenAccessORM Twitter channel to get first the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
  3. DevCraft banner
  4. Kyle T.
    Kyle T. avatar
    16 posts
    Member since:
    Dec 2011

    Posted 03 May 2012 Link to this post

    Alexander

    Thanks for the quick response!  That will work for the near term.

    Are there any plans to expose the configuration of the default behavior in the future?

    Thanks,
    Kyle
  5. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 04 May 2012 Link to this post

    Hi Kyle,

    In fact we have plans to introduce a global settings dialog, where changing the default values will be possible. However, these settings will be applied to all items that use default settings and not only to some of them, for example the members mapped to DateTime columns.
    You can expect this functionality in one of the following official releases of OpenAccess ORM.

    Kind regards,
    Alexander
    the Telerik team
    Follow @OpenAccessORM Twitter channel to get first the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
  6. Kyle T.
    Kyle T. avatar
    16 posts
    Member since:
    Dec 2011

    Posted 04 May 2012 Link to this post

    Alexander

    That's great to hear and that's exactly what I was hoping for!

    Thanks again for the quick answer and all of the great work you guys are doing.

    Thanks,
    Kyle
Back to Top
DevCraft banner