Click here to Skip to main content
15,894,630 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need help Marshaling in C# PinPopular
leppie27-Nov-08 23:23
leppie27-Nov-08 23:23 
GeneralRe: Need help Marshaling in C# Pin
Tunçay Şanlı1-Dec-08 0:26
Tunçay Şanlı1-Dec-08 0:26 
QuestionVideo streaming Pin
resna.s27-Nov-08 22:11
resna.s27-Nov-08 22:11 
AnswerRe: Video streaming Pin
Simon P Stevens27-Nov-08 23:01
Simon P Stevens27-Nov-08 23:01 
AnswerRe: Video streaming Pin
Tom Deketelaere27-Nov-08 23:20
professionalTom Deketelaere27-Nov-08 23:20 
AnswerRe: Video streaming Pin
Pete O'Hanlon28-Nov-08 2:54
mvePete O'Hanlon28-Nov-08 2:54 
Question3tier - dataflow Pin
jogisarge27-Nov-08 21:28
jogisarge27-Nov-08 21:28 
AnswerRe: 3tier - dataflow Pin
Thomas Weller27-Nov-08 22:05
Thomas Weller27-Nov-08 22:05 
The whole thing of separating the layers is about not letting the UI know that there is such a thing as a datalayer and vice versa. Thus, your question (the grid should be filled by a dataset) is misleading. A grid shouldn't be aware of the concept 'dataset' at all.

(I know that it is not always done this strict way, but then it is no proper 3tier architecture...)

Rather you have your BAL communicate with the DAL exclusively, and your UI is only allowed to talk with the BAL, not with the DAL.

Example:
You have a db table, say CUSTOMERS.
In your BL, you have a related business object, a Customer class. Additionally you have a class that gives the illusion of an in-memory collection of all customers, say CustomerRepository, that is used to access certain Customer objects or collections of them on demand. Internally, this CustomerRepository is using the DAL to persist your data.
The DAL is the layer used for mediating between your CUSTOMERS table and the Customer class.

Now, in your GUI, you can fill your grid with Customer instances instead of dataset rows.

Regards
Thomas

www.thomas-weller.de

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software.


GeneralRe: 3tier - dataflow Pin
jogisarge28-Nov-08 9:05
jogisarge28-Nov-08 9:05 
GeneralRe: 3tier - dataflow Pin
Thomas Weller28-Nov-08 18:32
Thomas Weller28-Nov-08 18:32 
QuestionHow to log msg in Remote machine event log... Pin
Chintan.Desai27-Nov-08 20:11
Chintan.Desai27-Nov-08 20:11 
AnswerRe: How to log msg in Remote machine event log... Pin
Abhijit Jana27-Nov-08 20:38
professionalAbhijit Jana27-Nov-08 20:38 
Questionhow to cast combobox Pin
sadara27-Nov-08 20:01
sadara27-Nov-08 20:01 
QuestionRemoting Unit Testing suggestions. Pin
Member 232448327-Nov-08 19:48
Member 232448327-Nov-08 19:48 
QuestionInternal buffer(I/O) size of serialport Pin
Shivarudrayya H27-Nov-08 18:00
Shivarudrayya H27-Nov-08 18:00 
AnswerRe: Internal buffer(I/O) size of serialport Pin
Mbah Dhaim27-Nov-08 19:43
Mbah Dhaim27-Nov-08 19:43 
Questioncreating ssis package on the fly using C# Pin
l.laxmikant27-Nov-08 17:43
l.laxmikant27-Nov-08 17:43 
Question[HELP] Attempted to access an element as a type incompatible with the array Pin
dnlmarshall27-Nov-08 15:38
dnlmarshall27-Nov-08 15:38 
AnswerRe: [HELP] Attempted to access an element as a type incompatible with the array Pin
Christian Graus27-Nov-08 15:40
protectorChristian Graus27-Nov-08 15:40 
GeneralRe: [HELP] Attempted to access an element as a type incompatible with the array Pin
dnlmarshall27-Nov-08 15:46
dnlmarshall27-Nov-08 15:46 
GeneralRe: [HELP] Attempted to access an element as a type incompatible with the array Pin
Christian Graus27-Nov-08 15:55
protectorChristian Graus27-Nov-08 15:55 
GeneralRe: [HELP] Attempted to access an element as a type incompatible with the array Pin
dnlmarshall27-Nov-08 16:04
dnlmarshall27-Nov-08 16:04 
QuestionCAS problem Pin
_anil_27-Nov-08 14:18
_anil_27-Nov-08 14:18 
AnswerRe: CAS problem Pin
V.27-Nov-08 20:25
professionalV.27-Nov-08 20:25 
Questionhow to record sound from a mic Pin
BahaaHany27-Nov-08 11:39
BahaaHany27-Nov-08 11:39 

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.