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


««12

Exception with Extended PropertiesExpand / Collapse
Author
Message
Posted 05/21/2008 9:16:56 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:58:13 AM
Posts: 4,379, Visits: 4,421
Any comment ? I 'm trying to find easy way ? (Shared) Central point to write the code. (EnsureColumnsExist)

I generally do this immediately after calling a Fill ... or even in some cases an Add since those columns would not exist on the Add.  This really is up to you and depends on if this is an isolated element of a single maintenance form or will happen for the entire BO no matter where it is used.

If it is the latter, then you may want to override the FillDataTable method on your BO.  Then call this method after you call the MyBase.FillDataTable(...) method. 

Post #16484
Posted 05/23/2008 7:26:36 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 3:31:12 AM
Posts: 146, Visits: 438
Any comment ?
Post #16548
Posted 05/23/2008 9:34:12 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:58:13 AM
Posts: 4,379, Visits: 4,421
No, not really.  What do you mean?  I already gave you my comment on the previous post.
Post #16549
Posted 05/24/2008 3:18:47 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 3:31:12 AM
Posts: 146, Visits: 438
I had thought that I had to write for every property of a class to ensure specified column exist in CurrentDataTable.

But It was only for extended properties. So, It is not hard to write.

Post #16566
« Prev Topic | Next Topic »

««12

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 9:21am

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