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

.NET (Core and Framework)

 
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 
dojohansen wrote:
data sets have some very nice features. They lend themselves to AJAX and web services rather well since their internal representation is XML


The internal representation of a DataSet is not XML. That would be increadibly inefficient.


dojohansen wrote:
To implement things like the DataTable.Select() method or DataViews and filters, or relations, you need to start including metadata in the classes or use reflection to discover it, and you then lose the raw speed of primitive data objects with hardcoded relations


Using LINQ to Objects you don't have these problems, it is built in to the language and the type discovery is done at compile time so it won't slow your application during run time.

dojohansen wrote:
How much of the functionality it offers is useful to me? How much might become useful down the road?


I've already discussed the uses cases where I think DataAdapeters/Sets/Tables work. They are few because it is more useful to me in the business model. I don't like data artifacts to exist outside the data layer because it means I can't swap a Database for a flat file, XML file, web service or any number of other things that don't natively talk in DataSets.

I like my applications to be clean and easily understood. DataSets have no business functionality. They cannot tell me the business rules regarding refunds, or how a certain discounts can be applied. Sure I can see that there is the data to support refunds or discounts but without the business rules it isn't nearly rich enough.


dojohansen wrote:
the client makes an AJAX request the body of which is the edited XML document, and the server simply creates a dataset from the XML and uses DataAdapter.Update() to delete, insert, and update as required, detecting concurrency violations if any.


And where do the business rules fit in to all this? Maybe we are creating different types of application and you are creating an application that is an interface onto a database but in every application I've ever worked on there have been rules, validation, conditions that have to be met before the data is allowed anywhere near a database. There is more to persisting data than concurrency violations.

dojohansen wrote:
Personally, I quite like the datasets.


I can tell. I'm beginning to wonder if perhaps you are the dogmatic one. Big Grin | :-D


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 
AnswerRe: Database connection Pin
Fernando Soto11-Apr-09 8:09
Fernando Soto11-Apr-09 8:09 
AnswerRe: Database connection Pin
PIEBALDconsult13-Apr-09 4:16
mvePIEBALDconsult13-Apr-09 4:16 
AnswerRe: Database connection Pin
dojohansen14-Apr-09 22:02
dojohansen14-Apr-09 22:02 
GeneralRe: Database connection Pin
Colin Angus Mackay15-Apr-09 2:37
Colin Angus Mackay15-Apr-09 2:37 
GeneralRe: Database connection Pin
dojohansen15-Apr-09 2:59
dojohansen15-Apr-09 2:59 
GeneralRe: Database connection Pin
Paulo Zemek29-Apr-09 11:48
Paulo Zemek29-Apr-09 11:48 
AnswerRe: Database connection Pin
saanj29-Apr-09 0:01
saanj29-Apr-09 0:01 
GeneralRe: Database connection Pin
EmZan29-Apr-09 0:06
EmZan29-Apr-09 0:06 
Questionsecurity problem in asp.net Pin
deepak baldia9-Apr-09 19:15
deepak baldia9-Apr-09 19:15 
AnswerRe: security problem in asp.net Pin
Colin Angus Mackay10-Apr-09 2:48
Colin Angus Mackay10-Apr-09 2:48 

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.