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



is there a shortcut to creating all business...Expand / Collapse
Author
Message
Posted 01/17/2008 2:33:32 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 01/20/2008 12:00:34 AM
Posts: 7, Visits: 28
First off, let me state that other than going thru the tutorials about 4 or 5 months ago, I am brand new to StrataFrame so please excuse my dumb questions. 

So I'm building a Business object library and according to the help files you have to add a class to your project and then use the Business Object Mapper (BOM) to configure the class.  Is there a way to point the BOM to a database and have it create classes for all tables at once or do I have to do it one-by-one?  Thanks!

Post #13542
Posted 01/17/2008 2:38:01 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:34:19 AM
Posts: 4,771, Visits: 4,733
Is there a way to point the BOM to a database and have it create classes for all tables at once or do I have to do it one-by-one?

At the moment you first have to manually create the BusinessObject class then map it.  We have had this request in the past, but the truth is that this generally isn't an issue when you start to work with your application because you are going to work with a limited number of BOs as you build your app...so build them all at once hasn't really hindered anyones development process to my knowledge.  Hope that makes sense

Post #13545
Posted 01/17/2008 2:47:34 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 01/20/2008 12:00:34 AM
Posts: 7, Visits: 28
Thanks, but I'm lazy, me thinks its time to write a template in CodeSmith
Post #13548
Posted 01/18/2008 12:03:29 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 10/26/2008 7:09:11 AM
Posts: 72, Visits: 234
 When I started , I had the same feeling and wanting all of my DB tables mapped instantially, but as I went along I began to understand that each BO is unique in itself including ENUM mapping, Null handling, relationships, etc.   Each class should be looked at as an individual and programmed accordingly.   It works well as once you have done this you can almost forget about the class and use accordingly.  I especially love the ENUM side allowing for easy programming later.

Richard

Post #13566
Posted 01/18/2008 12:51:53 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:34:19 AM
Posts: 4,771, Visits: 4,733
Thanks for yoru input, Richard....that is what I was trying to say!
Post #13570
« 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 11:58am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 9 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.