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



How do you Declare a BO in C#Expand / Collapse
Author
Message
Posted 12/01/2005 3:04:13 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
Here is the code from the help file:

Public WithEvents MyBusinessObject1 As MyBusinessObject
 
How do declare this in c#?
 
public MyBusinessObject MyBusinessObject1;
 
 
Post #216
Posted 12/01/2005 3:06:51 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
Yes, that's how you would define it...

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.


www.bungie.net
Post #217
Posted 12/01/2005 4:08:36 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
When I am trying to set the businessobject property of a text box on a new page the BO is not listed.  What should I look for?  I have added my BO decleration to the ApplicationBasePage.cs file in the Business Object Definitions region.

Thanks

Post #218
Posted 12/01/2005 4:15:20 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
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.


www.bungie.net
Post #219
Posted 12/01/2005 4:55:06 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
It still isn't there.  Send the udpate when ever you have some time, I know things must be really busy around there since the release of the framework.

Scott

Post #220
Posted 12/02/2005 8:41:50 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
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...


www.bungie.net
Post #226
Posted 12/02/2005 9:56:07 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
Looking forward to Monday.

Thanks for the udpate.

Post #227
Posted 12/12/2005 3:01:36 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
The declaration of the business objects in the ApplicationBasePage.cs works now... however, you need to declare it as a property, so:

private MyBOClass _MyBO;

public MyBOClass MyBO
{
get
{
return this._MyBO;
}
set
{
this._MyBO = value;
}
}

Then, just build and it will be there as a possible option for the data source of bindable controls.


www.bungie.net
Post #257
« 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 4:31am

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