Business Object Library project template...


Author
Message
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
I noticed that there is a business object library template under the StrataFrame projects. I was wondering if this template was talked about at all in your documentation and where I would find that. If not could you summarize the template for me?



Also, my boss and i were talking the other day and it seems like a business object library would be beneficial to us... i'm just not sure how to approach creating/implementing one. Does any body have any advice/links?



Thanks.
Replies
Randy Jean
Randy Jean
StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)
Group: StrataFrame Users
Posts: 105, Visits: 641
How tough is it to split the BO's out into their own project if you've already gone down the "wrong" path? Smile



I don't have a whole lot of BO's now so this might be a good time to re-factor this....
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I did it this way Ermm I had about 80 BOs when I realized that I needed to have a library.



It wasn't fun, but it wasn't horrible (I went from 1 project to 6, so I had other issues to deal with besides the BOs). You'll hate yourself the longer you put it off.



The process is to create a new BO project, move the BOs into it, be sure to setup your namespaces.



Add a reference to the BO project in projects that use them (obviously).



Then fix the reference to the BOs, usually in designer files for forms. In code, you'd just add an Imports statement (using in C#). This isn't too bad, because you'll get a bunch of error messages, so you'll know where they are.



StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Moving a class from one project to another is acutally quite easy.  As long as the namespace doesn't change, you can move a class from one assembly to another without any problems (as long as the new target assembly is referenced, of course Smile).  So, just make sure that the namespaces are the same and your project is referenced and then drag the item from one project to another within the Solution Explorer.  If you just drag it, it will copy it, but if you shift-drag it, you will move it to its new location.

The only thing you're going to lose is the configuration for your business objects.  However, if you move all of your business objects into one project, then you can simply reconfigure the project within the BOMapper and select the BOMapper project that contains the configurations.  If you split your BOs into several assemblies, then you're going to lose some of the BO configurations.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Ah, I changed the namespace, which required messing with all the designer files.
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yes, if you change the namespace, you have to remember to modify it within both the main code file and the designer file.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search