Click here to Skip to main content
15,889,281 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Design Pattern Pin
Chiman118-Sep-09 9:57
Chiman118-Sep-09 9:57 
Questionwhich is the best design or architecture for developing small windows apps using c#? Pin
jarajeshwaran9-Sep-09 8:01
jarajeshwaran9-Sep-09 8:01 
AnswerRe: which is the best design or architecture for developing small windows apps using c#? Pin
Richard MacCutchan13-Sep-09 1:51
mveRichard MacCutchan13-Sep-09 1:51 
AnswerRe: which is the best design or architecture for developing small windows apps using c#? [modified] Pin
Eddy Vluggen13-Sep-09 3:01
professionalEddy Vluggen13-Sep-09 3:01 
Questioncode required Pin
vishwjeet7-Sep-09 10:08
vishwjeet7-Sep-09 10:08 
AnswerRe: code required Pin
Luc Pattyn7-Sep-09 10:44
sitebuilderLuc Pattyn7-Sep-09 10:44 
AnswerRe: code required Pin
Pete O'Hanlon7-Sep-09 11:20
mvePete O'Hanlon7-Sep-09 11:20 
QuestionHow to structure your entities Pin
Mycroft Holmes6-Sep-09 16:27
professionalMycroft Holmes6-Sep-09 16:27 
Currently I have something like this. Each table in the database has a class, a select and update (includes insert) procedure and usually a bunch of GetFor##### procs (CustomerGetForRegion, CustomerGetForBranch etc).

Many table also have a view (vwCustomer) that gets all the related labels, where the customer table stores the CustomerTypeID the view gets both the CustomerTypeID and the CustomerType. So typically a view has 2-6 joins. The GetFor#### use the view.

My dilema comes when creating the classes in C#. I natirally have a Customer class with all the ID fields and possibly a couple of list<> of child objects (Addresses, Contacts etc) but what about the labels CustomerType etc.

My customer class has 2 methods, GetRecord and GetObject, fairly obvious that one gets the table and the other gets the view. Both then populate the Customer class (it has properties for the view columns that are not in the table).

I experimented with inheriting the ICustomerType but that got very ugly very quickly as all my classes have the data fields and the methods for CRUD and query in them. This left me with multiple methods and properties hiding each other.

I am now looking to split my classes into Customer and CustomerDB. One hold the data and services properties and List<> requirements and the other gets does all the DB IO.

The floor is now open for discussion, criticism and ideas.



AnswerRe: How to structure your entities Pin
David Skelly8-Sep-09 2:42
David Skelly8-Sep-09 2:42 
GeneralRe: How to structure your entities Pin
Mycroft Holmes8-Sep-09 14:09
professionalMycroft Holmes8-Sep-09 14:09 
QuestionDynamic Report Generator Framework Design using XML and C# Pin
RK KL5-Sep-09 13:49
RK KL5-Sep-09 13:49 
QuestionDifferent UML Diagrams for Web Based "Recruitment Management System" Pin
Amir irfani29-Aug-09 1:08
Amir irfani29-Aug-09 1:08 
AnswerRe: Different UML Diagrams for Web Based "Recruitment Management System" Pin
Henry Minute5-Sep-09 14:17
Henry Minute5-Sep-09 14:17 
QuestionRe: Different UML Diagrams for Web Based "Recruitment Management System" Pin
Eddy Vluggen5-Sep-09 23:51
professionalEddy Vluggen5-Sep-09 23:51 
AnswerRe: Different UML Diagrams for Web Based "Recruitment Management System" Pin
Richard MacCutchan8-Sep-09 1:42
mveRichard MacCutchan8-Sep-09 1:42 
QuestionSuggest a desing Pin
ME_Learner27-Aug-09 20:23
ME_Learner27-Aug-09 20:23 
Answercross-post Pin
Luc Pattyn28-Aug-09 1:08
sitebuilderLuc Pattyn28-Aug-09 1:08 
QuestionDesign pattern suggestion Pin
majee26-Aug-09 0:54
majee26-Aug-09 0:54 
AnswerRe: Design pattern suggestion Pin
Eddy Vluggen26-Aug-09 9:24
professionalEddy Vluggen26-Aug-09 9:24 
GeneralRe: Design pattern suggestion Pin
majee26-Aug-09 23:57
majee26-Aug-09 23:57 
QuestionHow to Desing an Extensibile Application Pin
Sling Blade 2225-Aug-09 15:05
professionalSling Blade 2225-Aug-09 15:05 
AnswerRe: How to Desing an Extensibile Application Pin
Eddy Vluggen26-Aug-09 9:44
professionalEddy Vluggen26-Aug-09 9:44 
GeneralGeneric Report Filter Screen Pin
Brady Kelly25-Aug-09 9:41
Brady Kelly25-Aug-09 9:41 
GeneralRe: Generic Report Filter Screen Pin
Mycroft Holmes6-Sep-09 16:36
professionalMycroft Holmes6-Sep-09 16:36 
QuestionUML dependency and association Pin
pierpaolo paparo24-Aug-09 3:26
pierpaolo paparo24-Aug-09 3:26 

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.