ChicagoKiwi wrote:
I like what I've seen so far of your product. It seems WAY easy to use (without being simple
). I've had a hunt around on the forum but a lot of the threads seem to be very technical and very specific, I guess understandably.
So, anyway... I was wondering if you could describe, in general terms, how I'd go about the following tasks:
1. Adding a permanent (i.e. available on every instantiation) property, eg. name as a concatenation of first and last.
In selfservicing, use two-class scenario and add your property to the derived entity class. In Adapter, derive a new class from an entity class and from it's factory. As this is a bit cumbersome, the upgrade, which is almost in beta, offers regions for customization code in the generated code to preserve code between code generation cycles.
- Returning the results of a union (I can see that I can create a sp, is there another way?) and, given that the union results are from the same db table, do updates to the data get persisted to the db?
You can have multiple fetches to the same typedlist,typed view or entity collections. It depends on what you're using (adapter or selfservicing) what you've to do to keep the existing data. Which of the two are you using, selfservicing or adapter?
- Adding a 'summary' property, eg. adding order total from order details to the order.
This is not yet supported in entities through the designer, create a dynamic list for this. The plan was to add this support for the upcoming upgrade but it took longer than expected to create the expression editor so this is postponed till april/may.
- Returning the grandchildren of the current 'record', eg. returning all a customer's order details.
You can do that easily by creating an OrderDetails collection and a filter on the customerid in order. It depends on what you use (selfservicing or adapter) so I can give you an example implementation. Also it depends on the amount of data in your database what to choose: a join with filter or a subquery with filter.