Click here to Skip to main content
15,885,951 members
Home / Discussions / Database
   

Database

 
GeneralRe: Data Binding, Combo Boxes, and Related tables. Pin
Roger Wright29-Sep-10 3:13
professionalRoger Wright29-Sep-10 3:13 
GeneralRe: Data Binding, Combo Boxes, and Related tables. Pin
Mycroft Holmes29-Sep-10 12:09
professionalMycroft Holmes29-Sep-10 12:09 
GeneralRe: Data Binding, Combo Boxes, and Related tables. Pin
Roger Wright29-Sep-10 17:00
professionalRoger Wright29-Sep-10 17:00 
GeneralRe: Data Binding, Combo Boxes, and Related tables. Pin
MSBassSinger30-Sep-10 3:24
professionalMSBassSinger30-Sep-10 3:24 
GeneralRe: Data Binding, Combo Boxes, and Related tables. Pin
Mycroft Holmes30-Sep-10 12:03
professionalMycroft Holmes30-Sep-10 12:03 
GeneralRe: Data Binding, Combo Boxes, and Related tables. Pin
MSBassSinger30-Sep-10 12:24
professionalMSBassSinger30-Sep-10 12:24 
GeneralRe: Data Binding, Combo Boxes, and Related tables. Pin
patzerFish30-Sep-10 4:20
patzerFish30-Sep-10 4:20 
GeneralRe: Data Binding, Combo Boxes, and Related tables. Pin
Mycroft Holmes30-Sep-10 11:53
professionalMycroft Holmes30-Sep-10 11:53 
Excellent start, however you need to be aware the datareader lock the connection and should be consumed and disposed of ASAP, passing a datareader is asking for problems. For this reason I use datatable.fill. It uses a datareader under the hood but leaves you with a disconnected datatable as a result.

Also I do not make my DAL class static, I often connect to multiple databases. I do have a static class that hold the main copy of the dal but I often create additional copies for specific connections.

I have a single generic method that moves a datatable into a List<> of the object. I also have a UI helper class that binds a List<> to a form, naming discipline is required.

If you send me an email I will send you a copy of the DAL class.
Never underestimate the power of human stupidity
RAH

AnswerRe: Data Binding, Combo Boxes, and Related tables. Pin
underclocker30-Sep-10 6:00
underclocker30-Sep-10 6:00 
Questionnew line Pin
scottichrosaviakosmos25-Sep-10 23:00
scottichrosaviakosmos25-Sep-10 23:00 
AnswerRe: new line Pin
Mycroft Holmes25-Sep-10 23:40
professionalMycroft Holmes25-Sep-10 23:40 
AnswerRe: new line Pin
Corporal Agarn28-Sep-10 6:44
professionalCorporal Agarn28-Sep-10 6:44 
AnswerRe: new line Pin
bigbadben30-Sep-10 2:55
bigbadben30-Sep-10 2:55 
Question(INSERT EXEC statement cannot be nested.) and (Cannot use the ROLLBACK statement within an INSERT-EXEC statement.) how to solve this??!! Pin
Yajjoj25-Sep-10 9:43
Yajjoj25-Sep-10 9:43 
QuestionCreate Database in Oracle 9i Pin
MohanMbnr25-Sep-10 3:01
MohanMbnr25-Sep-10 3:01 
AnswerRe: Create Database in Oracle 9i Pin
Eddy Vluggen25-Sep-10 12:01
professionalEddy Vluggen25-Sep-10 12:01 
QuestionCreate database to share folder Pin
ndkit24-Sep-10 15:50
ndkit24-Sep-10 15:50 
AnswerRe: Create database to share folder Pin
Eddy Vluggen25-Sep-10 0:56
professionalEddy Vluggen25-Sep-10 0:56 
QuestionQuery Improvement Related to Lounge Post Pin
programmervb.netc++24-Sep-10 11:07
programmervb.netc++24-Sep-10 11:07 
AnswerRe: Query Improvement Related to Lounge Post Pin
Luc Pattyn24-Sep-10 11:29
sitebuilderLuc Pattyn24-Sep-10 11:29 
GeneralRe: Query Improvement Related to Lounge Post Pin
programmervb.netc++24-Sep-10 11:35
programmervb.netc++24-Sep-10 11:35 
AnswerRe: Query Improvement Related to Lounge Post Pin
Mycroft Holmes24-Sep-10 15:32
professionalMycroft Holmes24-Sep-10 15:32 
GeneralRe: Query Improvement Related to Lounge Post Pin
programmervb.netc++24-Sep-10 19:09
programmervb.netc++24-Sep-10 19:09 
GeneralRe: Query Improvement Related to Lounge Post Pin
programmervb.netc++27-Sep-10 13:50
programmervb.netc++27-Sep-10 13:50 
GeneralRe: Query Improvement Related to Lounge Post Pin
Mycroft Holmes27-Sep-10 15:45
professionalMycroft Holmes27-Sep-10 15:45 

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.