Click here to Skip to main content
15,897,704 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionODP.Net Pin
miniThomas17-Aug-07 0:54
miniThomas17-Aug-07 0:54 
AnswerRe: ODP.Net Pin
Paul Conrad4-Nov-07 7:07
professionalPaul Conrad4-Nov-07 7:07 
GeneralUsing RDL to Define Flat File Exports Pin
Brady Kelly16-Aug-07 4:05
Brady Kelly16-Aug-07 4:05 
QuestionPassing data between layers Pin
vagl16-Aug-07 3:40
vagl16-Aug-07 3:40 
AnswerRe: Passing data between layers Pin
John-ph26-Aug-07 3:00
John-ph26-Aug-07 3:00 
GeneralRe: Passing data between layers Pin
Mark Churchill26-Aug-07 18:12
Mark Churchill26-Aug-07 18:12 
QuestionPopulating Objects from Db Pin
Burnsys215-Aug-07 17:47
Burnsys215-Aug-07 17:47 
AnswerRe: Populating Objects from Db Pin
Mark Churchill16-Aug-07 22:02
Mark Churchill16-Aug-07 22:02 
You could try the free edition of Diamond Binding by following the link in my signature. This will pretty much do what you are after, without you having to write any code.

If you are really insistant on DIY you could tag all your fields with attributes and then write a templated base class that uses reflection to populate the fields. If you only have a few tables, it will probably be easier to not use a data layer at all to be honest.

What you've written will work, but you'll need to remember to keep your cache up to date when you insert/update records.

Mark Churchill
Director
Dunn & Churchill

GeneralRe: Populating Objects from Db Pin
Ed.Poore17-Aug-07 3:37
Ed.Poore17-Aug-07 3:37 
QuestionDesign Pattern Seminar in Europe Pin
Spithas8-Aug-07 2:59
Spithas8-Aug-07 2:59 
AnswerRe: Design Pattern Seminar in Europe Pin
Colin Angus Mackay14-Aug-07 5:01
Colin Angus Mackay14-Aug-07 5:01 
GeneralRe: Design Pattern Seminar in Europe Pin
Pete O'Hanlon14-Aug-07 9:43
mvePete O'Hanlon14-Aug-07 9:43 
GeneralRe: Design Pattern Seminar in Europe Pin
Spithas17-Aug-07 21:47
Spithas17-Aug-07 21:47 
GeneralRe: Design Pattern Seminar in Europe Pin
martin_hughes20-Aug-07 5:50
martin_hughes20-Aug-07 5:50 
AnswerRe: Design Pattern Seminar in Europe Pin
t!bast30-Aug-07 3:22
t!bast30-Aug-07 3:22 
GeneralKeyboard Wedge Barcode Scanner Pin
Brady Kelly7-Aug-07 23:32
Brady Kelly7-Aug-07 23:32 
QuestionChange CSS according to Browser? Pin
chand107-Aug-07 21:30
chand107-Aug-07 21:30 
AnswerRe: Change CSS according to Browser? Pin
Pete O'Hanlon7-Aug-07 21:54
mvePete O'Hanlon7-Aug-07 21:54 
QuestionRefactoring Properties into Classes Pin
Leslie Sanford7-Aug-07 6:52
Leslie Sanford7-Aug-07 6:52 
AnswerRe: Refactoring Properties into Classes Pin
Luc Pattyn7-Aug-07 7:43
sitebuilderLuc Pattyn7-Aug-07 7:43 
GeneralRe: Refactoring Properties into Classes Pin
Leslie Sanford7-Aug-07 8:00
Leslie Sanford7-Aug-07 8:00 
GeneralRe: Refactoring Properties into Classes Pin
Luc Pattyn7-Aug-07 14:34
sitebuilderLuc Pattyn7-Aug-07 14:34 
AnswerRe: Refactoring Properties into Classes Pin
Pete O'Hanlon7-Aug-07 22:00
mvePete O'Hanlon7-Aug-07 22:00 
GeneralRe: Refactoring Properties into Classes Pin
Heavy Storm15-Aug-07 8:11
Heavy Storm15-Aug-07 8:11 
AnswerRe: Refactoring Properties into Classes Pin
originSH7-Aug-07 23:05
originSH7-Aug-07 23:05 

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.