Click here to Skip to main content
15,920,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generic C# operator Pin
Heath Stewart23-Jun-04 10:34
protectorHeath Stewart23-Jun-04 10:34 
GeneralLoosing focus Pin
Anonymous23-Jun-04 8:17
Anonymous23-Jun-04 8:17 
QuestionWhere is the rest of my Datagrid? Pin
kornstyle23-Jun-04 8:05
kornstyle23-Jun-04 8:05 
AnswerRe: Where is the rest of my Datagrid? Pin
Heath Stewart23-Jun-04 9:02
protectorHeath Stewart23-Jun-04 9:02 
GeneralRe: Where is the rest of my Datagrid? Pin
kornstyle23-Jun-04 9:17
kornstyle23-Jun-04 9:17 
GeneralRe: Where is the rest of my Datagrid? Pin
Heath Stewart23-Jun-04 10:32
protectorHeath Stewart23-Jun-04 10:32 
GeneralCode Critique Requested Pin
mealnumberone23-Jun-04 7:49
mealnumberone23-Jun-04 7:49 
GeneralRe: Code Critique Requested Pin
Daniel Turini23-Jun-04 8:38
Daniel Turini23-Jun-04 8:38 
Although not a critique about your OOP design, which is, BTW, very hard to do without a complete model: a single class can hardly be called "OOP".
I'd like to point you to some scalability factors:
1. ADO.NET implements connection pooling. So, don't get a connection and keep it on a class field. A connection should always be opened as late as possible and "closed" (actually, returned to the pool) as late as possible.
2. C# doesn't have destructors. The syntax you used, ~PositionsDB() is for finalizers, which is a very different thing. Read more about the IDisposable interface (often referred as IDisposable pattern) or you'll kill your scalability.
3. SqlCommand, SqlDataReader and SqlConnection are IDisposable objects: you should either call Dispose on them, or, better, use the "using" statement. As a rule of thumb, for every "new" or method that returns a reference, it's the caller responsibility to call Dispose when done. Even in a situation of an error, so if you can't use the "using" statement, put the Dispose on a try/finally block.


Yes, even I am blogging now!
GeneralRe: Code Critique Requested Pin
Heath Stewart23-Jun-04 8:50
protectorHeath Stewart23-Jun-04 8:50 
GeneralRe: Code Critique Requested Pin
Daniel Turini23-Jun-04 9:00
Daniel Turini23-Jun-04 9:00 
GeneralRe: Code Critique Requested Pin
Heath Stewart23-Jun-04 9:06
protectorHeath Stewart23-Jun-04 9:06 
GeneralRe: Code Critique Requested Pin
mealnumberone23-Jun-04 9:11
mealnumberone23-Jun-04 9:11 
GeneralRe: Code Critique Requested Pin
Daniel Turini23-Jun-04 10:25
Daniel Turini23-Jun-04 10:25 
GeneralRe: Code Critique Requested Pin
Steven Campbell23-Jun-04 9:42
Steven Campbell23-Jun-04 9:42 
GeneralDataGrid and end edit Pin
cje23-Jun-04 6:44
cje23-Jun-04 6:44 
GeneralRe: DataGrid and end edit Pin
Heath Stewart23-Jun-04 8:40
protectorHeath Stewart23-Jun-04 8:40 
GeneralRe: DataGrid and end edit Pin
cje23-Jun-04 8:49
cje23-Jun-04 8:49 
GeneralRe: DataGrid and end edit Pin
Heath Stewart23-Jun-04 9:00
protectorHeath Stewart23-Jun-04 9:00 
GeneralRe: DataGrid and end edit Pin
cje23-Jun-04 9:04
cje23-Jun-04 9:04 
QuestionHow-to? Connect to remote pc over LAN connection ? Pin
Adel83k23-Jun-04 5:57
Adel83k23-Jun-04 5:57 
AnswerRe: How-to? Connect to remote pc over LAN connection ? Pin
eggie523-Jun-04 6:44
eggie523-Jun-04 6:44 
GeneralRe: How-to? Connect to remote pc over LAN connection ? Pin
Adel83k24-Jun-04 1:09
Adel83k24-Jun-04 1:09 
AnswerRe: How-to? Connect to remote pc over LAN connection ? Pin
Steven Campbell23-Jun-04 7:19
Steven Campbell23-Jun-04 7:19 
AnswerRe: How-to? Connect to remote pc over LAN connection ? Pin
sides_dale23-Jun-04 15:44
sides_dale23-Jun-04 15:44 
GeneralSuggestion Pin
vcorn23-Jun-04 5:23
vcorn23-Jun-04 5:23 

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.