The latest version of Quick Objects includes introduces some nice features, increasing its appeal for both enterprise and small-shop development. The core framework now supports bulk delete and update operations, previously only possible by dropping down to stored procs or custom SQL. Below is an example of the BulkDelete functionality:
1: using (AuditEntry entry = new AuditEntry())
2: {
3: entry.ObjectMode = ObjectModes.Search;
4: entry.LogDate.Visible = true;
5: entry.LogDate.Value = DateTime.UtcNow.AddDays(-7);
6: entry.LogDate.Operator = Operators.LessThan;
7: entry.BulkDelete();
8: }
The object-generation tool has been enhanced to support command-line execution against a QO project file:
"C:\Program Files\Akal Tech\Quick Objects V3\NET20\BIN\QuickObjects.Designer.exe" "C:\Projects\MyProject\QuickObjects.qos" /r /s /c /gb /gc /int /inc
In the above example, I am specifying that the objects refresh based on the latest database schema, and to include new tables and new columns. This can be especially handy to run in a post-deploy MSBuild target, if your solution includes a VSTS Database Edition project, in order to keep the business objects auto-synchronized with the database schema.
Many developers out there host applications in shared hosting environments, which typically run in Medium Trust. In previous version of QO, the licensing model required that the host make changes to their medium trust file to trust a 3rd-party licensing component, a task that might be difficult to get approved by a web host. QO has now updated its licensing model to support running in medium trust out of the box.