In previous versions of OpenAccess ORM, configuring large data models could be a bit cumbersome. However, I am happy to say that in Q1 2012 we are adding a new batch operation dialog, which makes configuring data models easier than ever! Using the Batch Operation Wizard, developers can efficiently make updates to several entities, or members, in a single operation!
To launch the batch operation dialog, right click on the visual design surface, and select Batch Operations.
This menu item launches the new wizard:
On the left side of the wizard is a search area. This allows developers to search for entities, or members, by different criteria. The search results are displayed in the grid in the center of the dialog; by default all items are displayed. Once you select a few items from the center grid, a batch operation can be applied using the panel on the right.
In this example, I filtered the entities down using the underlying table’s schema. I then moved all of the entities into the namespace Production, and clicked the execute button to make the change. As you can see this affected 25 entities in the domain model.
As I mentioned, this dialog can also do batch operation on members. In the search pane on the left, select the Members radio button. At this point the grid will switch to show all members in the domain model. Once again you can filter them down using various criteria. After you find the members that need modification, select them, and using the right panel apply a batch operation.
In this example, I searched for all string properties in the ProductReview class, and updated the length property.
When you open the wizard, you may notice that the length column is not visible in the grid. No worries! The grid can be customized to show many different properties. To add/or remove columns to the center grid, simply right click on the header section, and you will be greeted by a handy column picker!
The new batch operation dialog significantly increases developer productivity by allowing domain model changes to be made in bulk. Gone are the days of making changes entity by entity, or member by member!
We hope you enjoy this new feature, and as always we look forward to any feedback you may have!
The latest Telerik release is just around the corner and we have tons of new stuff to show off. If you are eager to see the new bits and sharpen your .NET skills, be sure to sign up for Release Webinar Week. This 3-day event is packed with hour-long webinar sessions on the coolest new features shipping with the Q1 2012 release. Release Webinar Week will be held on February 20 – 22, so mark your calendars.
One lucky winner from each webinar will leave with a Telerik Ultimate Collection license worth $1999. To enter the drawing and participate in the Q&A session, you must attend the live webinar.
Ivailo Ivanov is Team Lead in Telerik Data Access
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.