StrataFrame Forum

Create Business Object from a Query?

http://forum.strataframe.net/Topic1612.aspx

By Jason Stevenson - 6/21/2006

Instead of mapping to a table, can a person map a BO to a Query?
By Trent L. Taylor - 6/21/2006

Jason,

The only way you can map to a query and have the strong-typed properties created is by mapping to a view.  This allows you to pull from a number of different tables at the same time and bring the data into a single business object entity and still have the strong-typed property access.

By StrataFrame Team - 6/21/2006

If you don't need the strong-typed properties, you can pull any query into a business object because the business object stores its record sets in a DataTable, which is malleable, so it can contain any number of columns.  All of the retrieved columsn will then be available through the Item() property on the business object.