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

Changing Default Load Behavior

4 Answers 176 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kyle T.
Top achievements
Rank 1
Kyle T. asked on 03 May 2012, 02:50 PM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Alexander
Telerik team
answered on 03 May 2012, 05:17 PM
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!
0
Kyle T.
Top achievements
Rank 1
answered on 03 May 2012, 05:28 PM
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
0
Alexander
Telerik team
answered on 04 May 2012, 04:03 PM
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!
0
Kyle T.
Top achievements
Rank 1
answered on 04 May 2012, 04:06 PM
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
Tags
Databases and Data Types
Asked by
Kyle T.
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Kyle T.
Top achievements
Rank 1
Share this question
or