﻿<?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 » WebForms (How do I?)  » How do you Declare a BO in C#</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 14:37:39 GMT</lastBuildDate><ttl>20</ttl><item><title>How do you Declare a BO in C#</title><link>http://forum.strataframe.net/FindPost216.aspx</link><description>Here is the code from the help file:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=KeywordsClass&gt;Public&lt;/SPAN&gt; &lt;SPAN class=KeywordsClass&gt;WithEvents&lt;/SPAN&gt; MyBusinessObject1 &lt;SPAN class=KeywordsClass&gt;As&lt;/SPAN&gt; MyBusinessObject&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;How do declare this in c#?&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;public MyBusinessObject MyBusinessObject1;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;/PRE&gt;</description><pubDate>Mon, 12 Dec 2005 15:01:36 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: How do you Declare a BO in C#</title><link>http://forum.strataframe.net/FindPost257.aspx</link><description>The declaration of the business objects in the ApplicationBasePage.cs works now... however, you need to declare it as a property, so:&lt;br&gt;
&lt;br&gt;
private MyBOClass _MyBO;&lt;br&gt;
&lt;br&gt;
public MyBOClass MyBO&lt;br&gt;
{&lt;br&gt;
   get&lt;br&gt;
   {&lt;br&gt;
      return this._MyBO;&lt;br&gt;
   }&lt;br&gt;
   set&lt;br&gt;
   {&lt;br&gt;
      this._MyBO = value;&lt;br&gt;
   }&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
Then, just build and it will be there as a possible option for the data source of bindable controls.</description><pubDate>Mon, 12 Dec 2005 15:01:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: How do you Declare a BO in C#</title><link>http://forum.strataframe.net/FindPost227.aspx</link><description>Looking forward to Monday.&lt;/P&gt;&lt;P&gt;Thanks for the udpate.</description><pubDate>Fri, 02 Dec 2005 09:56:07 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: How do you Declare a BO in C#</title><link>http://forum.strataframe.net/FindPost226.aspx</link><description>Aye, I'll get it to you ASAP, but you might have to wait until Monday, when we plan to release the OLE DB support...</description><pubDate>Fri, 02 Dec 2005 08:41:50 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: How do you Declare a BO in C#</title><link>http://forum.strataframe.net/FindPost220.aspx</link><description>It still isn't there.&amp;nbsp; Send the&amp;nbsp;udpate when ever you&amp;nbsp;have some time, I know things must be really busy around there since the release of the framework.&lt;/P&gt;&lt;P&gt;Scott</description><pubDate>Thu, 01 Dec 2005 16:55:06 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: How do you Declare a BO in C#</title><link>http://forum.strataframe.net/FindPost219.aspx</link><description>You'll have to rebuild your project before the new business object you've declared will be visible.  We've had some issues the the type resolution and finally got the type editors switched over to using the VsTypeResolutionService.  I'm not sure if you have that update, so if the business object still doesn't show up after you rebuild, then let me know, and I'll shoot you the update.</description><pubDate>Thu, 01 Dec 2005 16:15:20 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: How do you Declare a BO in C#</title><link>http://forum.strataframe.net/FindPost218.aspx</link><description>When I am trying to set the businessobject property of a text box on a new page the BO is not listed.&amp;nbsp; What should I look for?&amp;nbsp; I have added my BO decleration to the ApplicationBasePage.cs file in the Business Object Definitions region.&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Thu, 01 Dec 2005 16:08:36 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: How do you Declare a BO in C#</title><link>http://forum.strataframe.net/FindPost217.aspx</link><description>Yes, that's how you would define it... &lt;br&gt;
&lt;br&gt;
The WithEvents keyword in VB allows you to have Handles on methods to handle events, but since C# doesn't allow you to do that, there is no WithEvents.</description><pubDate>Thu, 01 Dec 2005 15:06:51 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>