Click here to Skip to main content
15,900,973 members
Home / Discussions / C#
   

C#

 
GeneralProcedure Parameter Pointer Pin
Budi Zhu25-Jan-05 11:24
Budi Zhu25-Jan-05 11:24 
GeneralRe: Procedure Parameter Pointer Pin
Dennis C. Dietrich25-Jan-05 12:13
Dennis C. Dietrich25-Jan-05 12:13 
GeneralA Design question [offtopic?] Pin
moredip25-Jan-05 11:03
moredip25-Jan-05 11:03 
GeneralRe: A Design question [offtopic?] Pin
Skynyrd25-Jan-05 12:01
Skynyrd25-Jan-05 12:01 
GeneralRe: A Design question [offtopic?] Pin
moredip25-Jan-05 12:19
moredip25-Jan-05 12:19 
GeneralRe: A Design question [offtopic?] Pin
Skynyrd25-Jan-05 12:47
Skynyrd25-Jan-05 12:47 
GeneralRe: A Design question [offtopic?] Pin
moredip25-Jan-05 13:45
moredip25-Jan-05 13:45 
GeneralRe: A Design question [offtopic?] Pin
Anonymous25-Jan-05 21:56
Anonymous25-Jan-05 21:56 
I'm not sure that the Member class should not be able to perform some simple higher-level abstraction utilities. If the actions are solely meaningful to the member class, then there is no problem in implementing them in that class.

For example, LastOnline and CheckExpiryDate might be only meaningful to the member class. Thus it would be reasonable to implement it in that class, even if its a higher level abstraction. Particularly, I would implement the CheckExpiryDate() as a boolean property HasExpired (question of tastes here Big Grin | :-D ).

On the other hand, more general functionality like UpdateWithInputFromWebForm might be a more general utility that might be meaningful to more objects than Member instances and should be implemented in a Utility class. My first design wouldnt be valid anyhow, as the Utility class should not be strongly typed to the Member class, and the update could and should be done in a generalize way (again with Reflection through a Dictionary collection: property name - new value for example u could acheive this)

To make it short, what I always try to do is isolate all DB Management from the real objects I'm using in my application. In your original design, your Member class was implementing the DB update logic too, and I think thats where I would change the abstraction of the objects. Implementing the utility class depends again on how complicated your app is really going to be, but I dont think implementing high level abstractions in the Member class is a design fault if those utilities are only applicable to the Member class.

I think we need some second view about this, so any more suggestions are welcome Smile | :)
GeneralCOM Port in Visual C# 2005 Pin
Juan Pablo G.C.25-Jan-05 9:08
Juan Pablo G.C.25-Jan-05 9:08 
GeneralRe: COM Port in Visual C# 2005 Pin
Stefan Troschuetz25-Jan-05 21:41
Stefan Troschuetz25-Jan-05 21:41 
GeneralCOM Port in Visual C# 2005 Pin
Juan Pablo G.C.25-Jan-05 9:06
Juan Pablo G.C.25-Jan-05 9:06 
GeneralRe: COM Port in Visual C# 2005 Pin
warnerja26-Jan-05 12:09
warnerja26-Jan-05 12:09 
GeneralHierachy on windows without MDI Pin
jpgarcia25-Jan-05 8:57
jpgarcia25-Jan-05 8:57 
Generalevent handling Pin
rchokler25-Jan-05 7:18
rchokler25-Jan-05 7:18 
GeneralRe: event handling Pin
Stefan Troschuetz25-Jan-05 21:25
Stefan Troschuetz25-Jan-05 21:25 
GeneralSpeed Hack Pin
Budi Zhu25-Jan-05 6:30
Budi Zhu25-Jan-05 6:30 
GeneralRe: Speed Hack Pin
Alex Korchemniy25-Jan-05 6:39
Alex Korchemniy25-Jan-05 6:39 
GeneralRe: Speed Hack Pin
Budi Zhu25-Jan-05 7:22
Budi Zhu25-Jan-05 7:22 
GeneralRe: Speed Hack Pin
Dave Kreskowiak25-Jan-05 8:26
mveDave Kreskowiak25-Jan-05 8:26 
GeneralRe: Speed Hack Pin
Budi Zhu25-Jan-05 11:27
Budi Zhu25-Jan-05 11:27 
GeneralRe: Speed Hack Pin
Dave Kreskowiak25-Jan-05 14:43
mveDave Kreskowiak25-Jan-05 14:43 
GeneralRe: Speed Hack Pin
Robert Rohde25-Jan-05 19:12
Robert Rohde25-Jan-05 19:12 
GeneralVb.net to C# conversion Pin
MyThread25-Jan-05 6:23
MyThread25-Jan-05 6:23 
GeneralRe: Vb.net to C# conversion Pin
bneacetp25-Jan-05 18:55
bneacetp25-Jan-05 18:55 
GeneralRe: Vb.net to C# conversion Pin
Dave Doknjas29-Jan-05 7:51
Dave Doknjas29-Jan-05 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.