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



Support to create inheritance layer for BO'sExpand / Collapse
Author
Message
Posted 02/20/2007 3:21:32 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
I'd like to extend the Business Object Inheritance Layer and addfew simple services like FillAll ( Which loads all records ), auditing services , optional serialization service , and extended Defaults Service.  I'd have to go into each Business Object and change the inheritance from

     Public Class SystemProgram

Inherits MicroFour.StrataFrame.Business.BusinessLayer

To

Public Class SystemProgram

Inherits {AppName}.Business.BusinessLayer.Extended 

Is there a way to do this right now?  I realize that I can go into each object and change the it there, but I thought that a setting might exist to allow the optional selection of the business layer to be used.

Richard

 

Post #7031
Posted 02/21/2007 9:42:44 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 5:04:58 PM
Posts: 4,780, Visits: 4,744
You only have to change it once.  If you'l notice, the inerhits command is in the main BO file not the partial that is generated through the BO mapper.  So you only have to change the inherited tag once when the BO is created.  You could also create your own template that has the BO inheriting your BO class so you do not have to change this when you create the BO.  But in either case, the BO mapper will not overwrite the inherited statement since the inherited statement is not in the partial class.
Post #7051
Posted 02/21/2007 7:25:44 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
Thanks for the Template Idea, that worked out perfect.   For Anyone who would like instructions on how to build a template.

http://msdn.microsoft.com/msdnmag/issues/06/01/CodeTemplates/default.aspx.

That is the easiest thing I have ever done.  

Richard

Post #7099
Posted 02/22/2007 9:05:40 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
Thanks for posting that link... it gives people a place to go.  And once you get the template created, you can modify the .vstemplate file and the corresponding code files within the .zip file that is created.  Most of the tags within the .vstemplate file are pretty self-explanatory.


www.bungie.net
Post #7111
« 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 3:06am

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