Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
Questiontwo commands are possible Pin
srinivassam16-Jul-07 23:52
srinivassam16-Jul-07 23:52 
AnswerRe: two commands are possible Pin
Nisar Inamdar16-Jul-07 23:59
Nisar Inamdar16-Jul-07 23:59 
AnswerRe: two commands are possible Pin
Mike Dimmick17-Jul-07 2:21
Mike Dimmick17-Jul-07 2:21 
QuestionRDLC Pin
manoj_ce16-Jul-07 23:37
manoj_ce16-Jul-07 23:37 
QuestionBest practice for ADO.NET and C# Pin
matbuk16-Jul-07 23:08
matbuk16-Jul-07 23:08 
AnswerRe: Best practice for ADO.NET and C# Pin
Colin Angus Mackay16-Jul-07 23:17
Colin Angus Mackay16-Jul-07 23:17 
GeneralRe: Best practice for ADO.NET and C# Pin
matbuk16-Jul-07 23:33
matbuk16-Jul-07 23:33 
GeneralRe: Best practice for ADO.NET and C# Pin
Colin Angus Mackay16-Jul-07 23:47
Colin Angus Mackay16-Jul-07 23:47 
matbuk wrote:
If i create a DAL class would i then create an new instance at every point where data access was required?


I typically make my DAL classes singletons. It gets created on the first use and then reused throughout.


matbuk wrote:
Secondly, if i returned something like a DataSet from the DAL, whould the connection remain open?


DataSets are not connected to the database. So you can safely close the connection once you have the data and return a dataset.


Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...

"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."

Ready to Give up - Your help will be much appreciated.


My website

GeneralRe: Best practice for ADO.NET and C# Pin
matbuk16-Jul-07 23:55
matbuk16-Jul-07 23:55 
QuestionCopying one class to another Pin
Berlus16-Jul-07 22:54
Berlus16-Jul-07 22:54 
AnswerRe: Copying one class to another Pin
Martin#16-Jul-07 23:00
Martin#16-Jul-07 23:00 
QuestionText on Video using DirectX Pin
Sukhjinder_K16-Jul-07 22:46
Sukhjinder_K16-Jul-07 22:46 
AnswerRe: Text on Video using DirectX Pin
Eduard Keilholz16-Jul-07 23:44
Eduard Keilholz16-Jul-07 23:44 
QuestionXML Serialization Pin
blackjack215016-Jul-07 22:46
blackjack215016-Jul-07 22:46 
AnswerRe: XML Serialization Pin
J4amieC16-Jul-07 23:36
J4amieC16-Jul-07 23:36 
GeneralRe: XML Serialization Pin
blackjack215017-Jul-07 1:03
blackjack215017-Jul-07 1:03 
QuestionSystem Files in Deployment Pin
RoyRose7816-Jul-07 22:30
RoyRose7816-Jul-07 22:30 
AnswerRe: System Files in Deployment Pin
Colin Angus Mackay16-Jul-07 22:33
Colin Angus Mackay16-Jul-07 22:33 
QuestionRDLC report problem Pin
manoj_ce16-Jul-07 22:17
manoj_ce16-Jul-07 22:17 
QuestionCrystal Report (beginner) Pin
T.EDY16-Jul-07 21:58
T.EDY16-Jul-07 21:58 
Questiondrawing shape that is allowed to drag and drop Pin
cyn816-Jul-07 20:17
cyn816-Jul-07 20:17 
AnswerRe: drawing shape that is allowed to drag and drop Pin
Bert delaVega17-Jul-07 6:18
Bert delaVega17-Jul-07 6:18 
QuestionHow to changeIME mode Pin
iprasad00716-Jul-07 19:58
iprasad00716-Jul-07 19:58 
AnswerRe: How to changeIME mode Pin
Eduard Keilholz16-Jul-07 21:55
Eduard Keilholz16-Jul-07 21:55 
GeneralRe: How to changeIME mode Pin
iprasad00717-Jul-07 0:01
iprasad00717-Jul-07 0:01 

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.