StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Create Business Object from a Query?Expand / Collapse
Author
Message
Posted 06/21/2006 10:46:54 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 02/28/2007 12:59:00 PM
Posts: 15, Visits: 42
Instead of mapping to a table, can a person map a BO to a Query?
Post #1612
Posted 06/21/2006 10:49:05 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
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.

Post #1614
Posted 06/21/2006 10:51:35 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/09/2008 3:36:08 PM
Posts: 2,686, Visits: 1,891
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.


www.bungie.net
Post #1615
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:16pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.