Click here to Skip to main content
16,015,072 members
Home / Discussions / C#
   

C#

 
GeneralRe: Casting an image from an ImageList to an Icon? Pin
LongRange.Shooter19-May-06 4:18
LongRange.Shooter19-May-06 4:18 
QuestionHow i exit application Pin
cshivaprasad18-May-06 9:31
cshivaprasad18-May-06 9:31 
AnswerRe: How i exit application Pin
Rei Miyasaka18-May-06 9:54
Rei Miyasaka18-May-06 9:54 
AnswerRe: How i exit application Pin
friendshiple18-May-06 14:55
friendshiple18-May-06 14:55 
QuestionHow do I make my objects Database aware? Pin
martin_hughes18-May-06 9:22
martin_hughes18-May-06 9:22 
AnswerRe: How do I make my objects Database aware? Pin
Rei Miyasaka18-May-06 10:08
Rei Miyasaka18-May-06 10:08 
GeneralRe: How do I make my objects Database aware? Pin
martin_hughes18-May-06 22:21
martin_hughes18-May-06 22:21 
GeneralRe: How do I make my objects Database aware? Pin
Rei Miyasaka18-May-06 23:06
Rei Miyasaka18-May-06 23:06 
To be honest, I'm not too sure.

When it comes to networking and databases I grew up in the Unix environment, and the style there is quite different -- not too much OOP, not too much architectural consideration. Most of the code I saw was just raw SQL queries. Things are really down to earth, not that that's necessarily a good thing.

My experience with ADO.NET hasn't been too good; it's one of the few things that really bothers me about .NET, though that's apparently what LINQ is trying to change. The idea is quite intuitive, but there's a lot of quirks that you have to get around, and you'll be pulling your hair out if you don't plan things carefully.

I'd probably just work with SQL queries encapsulated by business objects that do all the logic and sanity checks. You have to be extra careful especially with security (watch out for SQL source injection[^]), but it's a lot easier to know what's going on.

Here's a pretty good guide on System.Data in case you decide to go that route: http://www.codeproject.com/csharp/practicalguidedatagrids1.asp[^]
GeneralRe: How do I make my objects Database aware? Pin
martin_hughes19-May-06 1:32
martin_hughes19-May-06 1:32 
GeneralRe: How do I make my objects Database aware? Pin
Rei Miyasaka19-May-06 1:59
Rei Miyasaka19-May-06 1:59 
QuestionShow + Focus Problem Pin
Phoen2518-May-06 9:22
Phoen2518-May-06 9:22 
AnswerRe: Show + Focus Problem Pin
stancrm18-May-06 21:01
stancrm18-May-06 21:01 
Questionquestion about casting a string to button Pin
abstar18-May-06 8:14
abstar18-May-06 8:14 
AnswerRe: question about casting a string to button Pin
Office Lineman18-May-06 8:26
Office Lineman18-May-06 8:26 
AnswerRe: question about casting a string to button Pin
Stefan Troschuetz18-May-06 8:59
Stefan Troschuetz18-May-06 8:59 
Questionhow to count elements inside an array? Pin
donkaiser18-May-06 4:44
donkaiser18-May-06 4:44 
AnswerRe: how to count elements inside an array? Pin
Robert Rohde18-May-06 4:50
Robert Rohde18-May-06 4:50 
AnswerRe: how to count elements inside an array? Pin
NaNg1524118-May-06 4:53
NaNg1524118-May-06 4:53 
GeneralRe: how to count elements inside an array? Pin
J4amieC18-May-06 5:39
J4amieC18-May-06 5:39 
GeneralRe: how to count elements inside an array? Pin
Robert Rohde18-May-06 5:57
Robert Rohde18-May-06 5:57 
GeneralRe: how to count elements inside an array? Pin
NaNg1524118-May-06 7:24
NaNg1524118-May-06 7:24 
GeneralRe: how to count elements inside an array? Pin
Robert Rohde18-May-06 7:27
Robert Rohde18-May-06 7:27 
GeneralRe: how to count elements inside an array? Pin
pq4noeh19-May-06 1:53
pq4noeh19-May-06 1:53 
GeneralRe: how to count elements inside an array? Pin
Robert Rohde19-May-06 4:32
Robert Rohde19-May-06 4:32 
AnswerRe: how to count elements inside an array? Pin
Rei Miyasaka18-May-06 7:10
Rei Miyasaka18-May-06 7:10 

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.