Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best Way To Handle Nulls Pin
PIEBALDconsult20-Jan-12 14:57
mvePIEBALDconsult20-Jan-12 14:57 
GeneralRe: Best Way To Handle Nulls Pin
jschell23-Jan-12 7:52
jschell23-Jan-12 7:52 
GeneralRe: Best Way To Handle Nulls Pin
jschell19-Jan-12 8:36
jschell19-Jan-12 8:36 
AnswerRe: Best Way To Handle Nulls Pin
fjdiewornncalwe18-Jan-12 11:29
professionalfjdiewornncalwe18-Jan-12 11:29 
GeneralRe: Best Way To Handle Nulls Pin
BobJanova18-Jan-12 22:29
BobJanova18-Jan-12 22:29 
AnswerRe: Best Way To Handle Nulls Pin
RobCroll18-Jan-12 15:00
RobCroll18-Jan-12 15:00 
AnswerRe: Best Way To Handle Nulls Pin
Luc Pattyn18-Jan-12 16:30
sitebuilderLuc Pattyn18-Jan-12 16:30 
AnswerRe: Best Way To Handle Nulls Pin
Pete O'Hanlon18-Jan-12 22:57
mvePete O'Hanlon18-Jan-12 22:57 
If you are strictly modelling what's in the database, then I would simplify this by making it so that Warehouse1 and Warehouse2 were nullable, and I would let getWarehouseModel return null if the warehouse id was null. Also, are you sure that your logic for getWarehouseModel is correct with regards to what you are evaluating? You seem to be using WarehouseId1 in both cases and it seems redundant evaluating it twice.

Forgive your enemies - it messes with their heads

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


Questionemployee imformation list !!! Pin
fafal18-Jan-12 3:55
fafal18-Jan-12 3:55 
AnswerRe: employee imformation list !!! Pin
Pete O'Hanlon18-Jan-12 4:40
mvePete O'Hanlon18-Jan-12 4:40 
GeneralRe: employee imformation list !!! Pin
fafal18-Jan-12 7:39
fafal18-Jan-12 7:39 
GeneralRe: employee imformation list !!! PinPopular
Shameel18-Jan-12 7:53
professionalShameel18-Jan-12 7:53 
GeneralRe: employee imformation list !!! Pin
fafal18-Jan-12 8:06
fafal18-Jan-12 8:06 
GeneralRe: employee imformation list !!! Pin
Shameel18-Jan-12 8:16
professionalShameel18-Jan-12 8:16 
GeneralRe: employee imformation list !!! Pin
fafal18-Jan-12 8:25
fafal18-Jan-12 8:25 
GeneralRe: employee imformation list !!! Pin
OriginalGriff18-Jan-12 8:33
mveOriginalGriff18-Jan-12 8:33 
GeneralRe: employee imformation list !!! Pin
Dave Kreskowiak18-Jan-12 9:48
mveDave Kreskowiak18-Jan-12 9:48 
GeneralRe: employee imformation list !!! Pin
Pete O'Hanlon18-Jan-12 10:05
mvePete O'Hanlon18-Jan-12 10:05 
GeneralRe: employee imformation list !!! Pin
Dave Kreskowiak18-Jan-12 9:47
mveDave Kreskowiak18-Jan-12 9:47 
GeneralRe: employee imformation list !!! Pin
V.19-Jan-12 21:54
professionalV.19-Jan-12 21:54 
GeneralRe: employee imformation list !!! Pin
fafal20-Jan-12 1:54
fafal20-Jan-12 1:54 
GeneralRe: employee imformation list !!! Pin
V.20-Jan-12 4:00
professionalV.20-Jan-12 4:00 
AnswerRe: employee imformation list !!! PinPopular
PIEBALDconsult18-Jan-12 4:54
mvePIEBALDconsult18-Jan-12 4:54 
AnswerRe: employee imformation list !!! Pin
SilimSayo18-Jan-12 9:49
SilimSayo18-Jan-12 9:49 
GeneralRe: employee imformation list !!! Pin
PIEBALDconsult18-Jan-12 10:33
mvePIEBALDconsult18-Jan-12 10:33 

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.