Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
AnswerRe: Little indian vs Big Indian [modified] Pin
Drew McGhie2-Aug-06 8:19
Drew McGhie2-Aug-06 8:19 
JokeRe: Little indian vs Big Indian Pin
Guffa2-Aug-06 9:04
Guffa2-Aug-06 9:04 
AnswerRe: Little Endian vs Big Endian Pin
Ennis Ray Lynch, Jr.2-Aug-06 8:25
Ennis Ray Lynch, Jr.2-Aug-06 8:25 
GeneralRe: Little Endian vs Big Endian Pin
seq-2-Aug-06 8:29
seq-2-Aug-06 8:29 
AnswerRe: Little Endian vs Big Endian Pin
engsrini2-Aug-06 8:33
engsrini2-Aug-06 8:33 
AnswerRe: Little Endian vs Big Endian Pin
Guffa2-Aug-06 8:52
Guffa2-Aug-06 8:52 
QuestionTyped Datasets vs. Custom Classes Pin
econner2-Aug-06 8:13
econner2-Aug-06 8:13 
AnswerRe: Typed Datasets vs. Custom Classes Pin
eggsovereasy2-Aug-06 9:59
eggsovereasy2-Aug-06 9:59 
Use both! Make the typed Datasets the DAL and some classes the BLL. Your presentation layer then makes calls to the BLL wich in turn makes a call to the typed datasets.

If you use the System.ComponentModel.DataObject and System.ComponentModel.DataObjectMethodAttribute attributes in your BLL then you can even use your classes as datasources for gridviews et al.

I do it this way because the database people make me do things I don't like to do, like a switch in the database has to be a char(1) with 'Y' or 'N' in it instead of a bit field, so I use the BLL to abstract it so I can just use bools in my code.

private char isActive;

public bool IsActive
{
    get { return this.isActive == 'Y' ? true : false; }
    set { this.isActive = value ? 'Y' : 'N'; }
}

QuestionDAL/BLL Best Practices Pin
econner2-Aug-06 8:08
econner2-Aug-06 8:08 
AnswerRe: DAL/BLL Best Practices [modified] Pin
eggsovereasy2-Aug-06 10:03
eggsovereasy2-Aug-06 10:03 
GeneralRe: DAL/BLL Best Practices Pin
econner2-Aug-06 10:12
econner2-Aug-06 10:12 
GeneralRe: DAL/BLL Best Practices Pin
eggsovereasy2-Aug-06 10:35
eggsovereasy2-Aug-06 10:35 
QuestionHow to assign text control's value to a numeric variable? Pin
Amol Ravatale2-Aug-06 7:54
Amol Ravatale2-Aug-06 7:54 
AnswerRe: How to assign text control's value to a numeric variable? Pin
Stefan Troschuetz2-Aug-06 8:34
Stefan Troschuetz2-Aug-06 8:34 
AnswerRe: How to assign text control's value to a numeric variable? Pin
engsrini2-Aug-06 8:35
engsrini2-Aug-06 8:35 
AnswerRe: How to assign text control's value to a numeric variable? Pin
BlackDice2-Aug-06 8:38
BlackDice2-Aug-06 8:38 
QuestionStrange Behavior Pin
Mehdi Mousavi2-Aug-06 5:43
Mehdi Mousavi2-Aug-06 5:43 
QuestionScreenshots Pin
Kovu172-Aug-06 5:08
Kovu172-Aug-06 5:08 
AnswerRe: Screenshots Pin
Judah Gabriel Himango2-Aug-06 5:24
sponsorJudah Gabriel Himango2-Aug-06 5:24 
GeneralRe: Screenshots Pin
Kovu172-Aug-06 23:22
Kovu172-Aug-06 23:22 
GeneralRe: Screenshots Pin
Judah Gabriel Himango3-Aug-06 4:21
sponsorJudah Gabriel Himango3-Aug-06 4:21 
Questionhow to create a color eyedroppper? Pin
relsirc2-Aug-06 4:36
relsirc2-Aug-06 4:36 
AnswerRe: how to create a color eyedroppper? Pin
Ennis Ray Lynch, Jr.2-Aug-06 4:42
Ennis Ray Lynch, Jr.2-Aug-06 4:42 
Questionhow to remove duplicate characters from a text file [modified] Pin
vp152-Aug-06 4:35
vp152-Aug-06 4:35 
AnswerRe: how to remove duplicate characters from a text file Pin
Ennis Ray Lynch, Jr.2-Aug-06 4:44
Ennis Ray Lynch, Jr.2-Aug-06 4:44 

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.