FillDataTable affects Business Object property
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



FillDataTable affects Business Object...Expand / Collapse
Author
Message
Posted 04/23/2008 6:26:20 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Today @ 1:44:09 AM
Posts: 115, Visits: 344
In my case,

A Business Object, for example, Group has a property for another Business Object (Company).

I'm accessing as Group.Company. (Property get section initializes and fill the Company object with some rules.)

But I've noticed that, When Group.FillDataTable was executed, Group.Company was also accessed. (In Debug mode, I've not caught this.) Company object was initalized and filled.

This was unexpected condition. Prior to my call as Group.Company, internally it has been done.

I need help.

Thanks.

Post #15830
Posted 04/23/2008 9:10:55 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:54:01 AM
Posts: 4,104, Visits: 4,177
Well, you say that the property is being accessed through a FillDataTable, but the FillDataTable will not touch any of the properties and the only time a property is EVER touched is going to be when it is directly accessed...or bound.  If you have a dialog that is bound to this property, or properties within the exposed BO, then the bindings will be refreshed when navigated or the dta table is refilled, that would be the only time it would be accessed.
Post #15835
Posted 04/23/2008 9:31:13 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Today @ 1:44:09 AM
Posts: 115, Visits: 344
The case was strange. I will follow the case.

Thanks for quick reply.

Post #15841
Posted 04/25/2008 1:29:40 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Today @ 1:44:09 AM
Posts: 115, Visits: 344
I've found why this has happened.

In debugging, When we look at the object's properties we see the values. At this time, All of the get parts are executed internally.  

Post #15880
« 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 7:39pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 12 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.