﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Using Namespaces with strataframe BOs?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 23 Jun 2026 00:05:38 GMT</lastBuildDate><ttl>20</ttl><item><title>Using Namespaces with strataframe BOs?</title><link>http://forum.strataframe.net/FindPost17480.aspx</link><description>Hi &lt;/P&gt;&lt;P&gt;I need to organize my BOs in several namespaces. However it seems that it is not possible with Strataframe. When I manually update *.vb and *.Designer.vb files it works but when I rebuild classes with Business Object Mapper, the *.Designer.vb file lost the information about namespace... &lt;/P&gt;&lt;P&gt;I understand that Designer files are generated automatically but I didn't find any other method how to use namespaces.&lt;/P&gt;&lt;P&gt;Is there any correct way how to do it?</description><pubDate>Fri, 11 Jul 2008 09:02:06 GMT</pubDate><dc:creator>Jiri Brazda</dc:creator></item><item><title>RE: Using Namespaces with strataframe BOs?</title><link>http://forum.strataframe.net/FindPost17797.aspx</link><description>We use namespaces/libraries for all our BO's, however we just create a seperate library project&amp;nbsp;for each set of BOs and then just set&amp;nbsp;the namespace through the Project properties which will apply to all the BOs in that project.&amp;nbsp; Then your BO's are just a reference away from being ready for any other project you have.</description><pubDate>Fri, 11 Jul 2008 09:02:06 GMT</pubDate><dc:creator>Jason Seidell</dc:creator></item><item><title>RE: Using Namespaces with strataframe BOs?</title><link>http://forum.strataframe.net/FindPost17513.aspx</link><description>I use namespaces to organize my BOs and it works great. Just edit the BO .vb and .designer files with your namespace once and your good to go.</description><pubDate>Tue, 01 Jul 2008 14:19:50 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Using Namespaces with strataframe BOs?</title><link>http://forum.strataframe.net/FindPost17495.aspx</link><description>No problem at all...I apprecate your contributions out here on the forum and you are right on the money for the rest of the designer file.&amp;nbsp; But this is something that we specifically took into account.</description><pubDate>Tue, 01 Jul 2008 11:03:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using Namespaces with strataframe BOs?</title><link>http://forum.strataframe.net/FindPost17490.aspx</link><description>Thanks Trent,&lt;br&gt;
I´ve always been told not to stick on assumptions (I hope this is correct in English). And I did by assuming the BO mapper will overwrite the entire designer file. Though I´ll test it too. :D</description><pubDate>Tue, 01 Jul 2008 10:17:56 GMT</pubDate><dc:creator>Guillermo Vilas</dc:creator></item><item><title>RE: Using Namespaces with strataframe BOs?</title><link>http://forum.strataframe.net/FindPost17484.aspx</link><description>Actually the Namespace will be left alone once it has been added or changed within the *.vb and *.designer.vb file.&amp;nbsp; Based on this post I went and re-verified this since I was confused as to what you were posting.&lt;/P&gt;&lt;P&gt;If you open up a BO and add a namespace to both the .vb and the partial class (.designer.vb), the namespaces will stick, even after a partial class rebuild.&amp;nbsp; I have tested this and I know that we have a lot of developers that have this as a requirement within their shops and use this logic on extremely large environments, so I am very confident that this works.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CustomersBO.vb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/354333fc-4d8b-48d1-81cf-59c8.png"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CustomersBO.Designer.vb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/051c4642-3331-4b32-8b39-77c6.png"&gt;&lt;/P&gt;&lt;P&gt;If this is how the BOs are structured, then you go in and rebuild the partials, the namespace will be left intact.</description><pubDate>Tue, 01 Jul 2008 09:20:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using Namespaces with strataframe BOs?</title><link>http://forum.strataframe.net/FindPost17481.aspx</link><description>Hello Jiri&lt;br&gt;
I think this won´t be possible since the BO mapper overwrites the class designer (Designer.vb or Designer.cs) file every time you rebuild the mapped classes. The best way I can work around is doing one of these:&lt;br&gt;
&lt;br&gt;
1) Setup the Root Namespace at Project property level for the entire BO dll&lt;br&gt;
2) Creating a stand alone BO dll for each Business Logic: eg. YourCompany.YourProduct.BO.Sales.dll, YourCompany,YourProduct.BO.Inventory etc...&lt;br&gt;
3) Wait until you are sure you wont need to map the classes anymore (at least for production release) and apply your namespace manually.&lt;br&gt;
&lt;br&gt;
 Hope this help and I´m pretty sure the experts will add comments too. :)</description><pubDate>Tue, 01 Jul 2008 04:40:14 GMT</pubDate><dc:creator>Guillermo Vilas</dc:creator></item></channel></rss>