Click here to Skip to main content
15,893,790 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Database connection Pin
EmZan12-Apr-09 20:58
EmZan12-Apr-09 20:58 
GeneralRe: Database connection Pin
Colin Angus Mackay12-Apr-09 22:57
Colin Angus Mackay12-Apr-09 22:57 
GeneralRe: Database connection Pin
EmZan12-Apr-09 23:16
EmZan12-Apr-09 23:16 
GeneralRe: Database connection Pin
Colin Angus Mackay12-Apr-09 23:20
Colin Angus Mackay12-Apr-09 23:20 
GeneralRe: Database connection Pin
EmZan12-Apr-09 23:36
EmZan12-Apr-09 23:36 
GeneralRe: Database connection Pin
Colin Angus Mackay12-Apr-09 23:52
Colin Angus Mackay12-Apr-09 23:52 
GeneralRe: Database connection Pin
EmZan13-Apr-09 0:05
EmZan13-Apr-09 0:05 
GeneralRe: Database connection Pin
Colin Angus Mackay13-Apr-09 0:14
Colin Angus Mackay13-Apr-09 0:14 
EmZan wrote:
1.why did u call the data adapter an evil
i'm always using it in my application(actually my 4 applications)i'm a junior btw


Data Adapters are used to copy data into a DataSet or DataTable. These are large clunky constructs that almost always are under-utilised. So they end up taking more memory than they actually need for the job you use them for. The prefered solution is to take the data and put it in a domain model without the use of DataAdapters. LINQ to SQL goes some way to help achieve that easily. Previously you needed to use a DataReader (which a Data Adapters uses internally anyway) to get the data out and into your model.


EmZan wrote:
2.u said that any query is done against the database!
what i know is that dataAdapters keeps queried data and i use it many times without going to the database again and again for the same query


The Data Adapter dumps a disconnected copy of the data into a DataSet or DataTable. You are querying against that disconnected data. You never go back to the DataAdapter, you go back to the DataSet or DataTable. A DataAdapter's roll is to suck the data out of the database and make a copy of it. If it was a proper caching mechanism it would be relatively seamless. In otherwords you wouldn't know if it were cached or not.


GeneralRe: Database connection Pin
EmZan13-Apr-09 2:11
EmZan13-Apr-09 2:11 
GeneralRe: Database connection Pin
dojohansen14-Apr-09 22:21
dojohansen14-Apr-09 22:21 
GeneralRe: Database connection Pin
Colin Angus Mackay15-Apr-09 0:11
Colin Angus Mackay15-Apr-09 0:11 
GeneralRe: Database connection [modified] Pin
dojohansen15-Apr-09 0:59
dojohansen15-Apr-09 0:59 
GeneralRe: Database connection Pin
Pete O'Hanlon15-Apr-09 1:57
mvePete O'Hanlon15-Apr-09 1:57 
GeneralRe: Database connection Pin
dojohansen15-Apr-09 2:18
dojohansen15-Apr-09 2:18 
GeneralRe: Database connection Pin
Colin Angus Mackay15-Apr-09 2:33
Colin Angus Mackay15-Apr-09 2:33 
GeneralRe: Database connection Pin
dojohansen15-Apr-09 2:58
dojohansen15-Apr-09 2:58 
GeneralRe: Database connection Pin
Pete O'Hanlon15-Apr-09 4:27
mvePete O'Hanlon15-Apr-09 4:27 
GeneralRe: Database connection Pin
Colin Angus Mackay15-Apr-09 2:26
Colin Angus Mackay15-Apr-09 2:26 
GeneralRe: Database connection Pin
dojohansen15-Apr-09 3:27
dojohansen15-Apr-09 3:27 
GeneralRe: Database connection Pin
dojohansen15-Apr-09 3:30
dojohansen15-Apr-09 3:30 
GeneralRe: Database connection Pin
dojohansen15-Apr-09 3:36
dojohansen15-Apr-09 3:36 
GeneralRe: Database connection Pin
Pete O'Hanlon15-Apr-09 1:54
mvePete O'Hanlon15-Apr-09 1:54 
GeneralRe: Database connection Pin
dojohansen15-Apr-09 2:40
dojohansen15-Apr-09 2:40 
GeneralRe: Database connection Pin
Pete O'Hanlon15-Apr-09 4:38
mvePete O'Hanlon15-Apr-09 4:38 
AnswerRe: Database connection Pin
Colin Angus Mackay11-Apr-09 6:24
Colin Angus Mackay11-Apr-09 6:24 

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.