Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 17th, 2003, 10:25 PM
Vantera Vantera is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: South Coast of NSW, Australia
Posts: 108 Vantera User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Vantera
Article Discussion: Class Frameworks in VB .NET

Class Frameworks in VB .NET If you have any questions or comments about this article please post them here.

You can read the article here .
__________________
Kind Regards,
John Rebbeck
john@interspire.com
ICQ# 74637937

Reply With Quote
  #2  
Old February 24th, 2003, 01:23 AM
babhatty babhatty is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 1 babhatty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
List of business objects

Hii

a very nice article for beginners to move to object oriented world. it is always considered to be a good idea to develop BOs for etities in any application. but i have a confusion in this approach. if i chose to use BOs for entities like customers, items, invoices etc. how would i create lists of these objects. it is often required to show lists of invoices or list of customers etc. data grid and other controls provide data binding features which can be very helpful. but by using BOs, how would i bind those controls to datasets.

one solution is to expose dataview property from the class that could be used to bind it to the data grid. but it is not a good idea as we would lose the benefit of encapsulation and similar stuff.

another method is to develop a separate list objects that implement ilist and other interfaces so that we could bind these objects to these controls directly.

since you wrote this fine article, could you please explain your views in this area. any suggestions. what method is preferable or any other method to efficiently achieve this functionality.

thank you
Bilal

Reply With Quote
  #3  
Old February 26th, 2003, 08:03 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
I havn't read the article, but it seems John, missed out the collection and engine part of the discussion.

The common approached taken in the large business application is called ECC pattern, which refers to a set of classes representing an entity. this set contains 3 classes. Entity, Collection/Array, Engine.

Now you pointed out the fact that you often need a list of entities, thats where the collection class come in. You return a collection of the entities. Or arrays if the situation doesn't require you to dynamically adjust collection sizes.

Engine might not have been mentioned in the article, so ill explaining here.

Engine is the class containing static methods that fills up the collection and entity classes. eg, it would have methods like, GetAllUsers, or GetUser(int userId) etc etc

HTH

James
__________________
Regards,

James Yang
.NET Developer / Network Engineer
MCSE, MCDBA, MCSA, CCNA

http://www.yellowpin.com/
http://www.opentechsupport.com/

Reply With Quote
  #4  
Old July 20th, 2003, 03:52 PM
hus4ever hus4ever is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 1 hus4ever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up hi alll...i want some thing please....

i'm a biggner in vb.net

but i know little thing about it..i want to build a database class

for example :

1- first i want to connect to sqlserver.
2-after that , several properties and functions that i must have like
add, delete and others...

generic function for select ..that i give a table name,condition and coloumn as parameter..

(( if you can i want just simple code as possible becouse i'm just a biggner and thank you allllllll))

Reply With Quote
  #5  
Old August 9th, 2004, 04:14 PM
iprogramit iprogramit is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 iprogramit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink Nice article

I do have one question...being relatively new to oop...on the update button click am I missing something. It says only 4 lines would be needed. Wouldn't it be necessary to instantiate a new product object to access the properties. Also is it possible to see your completed code? You reference it in the article but I don't see anywhere where it can be accessed. Any help would be greatly appreciated. Once again, very nice article and I found it very helpful in clearing up some oop issues I was having.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Class Frameworks in VB .NET


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT