User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » .NET Datasets Page [1]  
aaronburro
Sup, B
53068 Posts
user info
edit post

Worth the hassle, or is it just better to write your own data access classes?

5/19/2008 8:25:43 PM

OmarBadu
zidik
25071 Posts
user info
edit post

i just got done on a .netcf project and in that case it was best to write your own - on a desktop i probably wouldn't though

5/19/2008 8:27:05 PM

qntmfred
retired
40726 Posts
user info
edit post

SubSonic ftw

[Edited on May 19, 2008 at 8:30 PM. Reason : or LINQ]

5/19/2008 8:30:31 PM

skeezen1
Veteran
306 Posts
user info
edit post

Unless you're going to use a lot of the features of a dataset (the sorting, the DataTable relationships, etc.) I've seen it to be more bloated than necessary.

I've found more success using some sort of base entity class along with a strongly-typed collection class (if you're using 2.0 or greater you can be much more efficient using generics).

SubSonic, LINQ, or nHibernate...I prefer nHibernate.

I will say that I have used Datasets in cases where I had unrelated tablular data (for instance results from an adhoc search that would not directly map to an entity/business object).

[Edited on May 19, 2008 at 9:23 PM. Reason : case for DS]

5/19/2008 9:15:38 PM

aaronburro
Sup, B
53068 Posts
user info
edit post

really, the only "benefit" i see from the dataset is that I don't have to write accessor methods or a class for what the tuple represents, aside from easy integration into forms with binding. The "update" methods are unwieldy, to say the least.

Why the hell would anyone use a dataset in the first place? What is "good" about them? Seems to me that you have to keep up with two definitions of a database with that damned thing.

5/19/2008 9:38:58 PM

LeGo
All American
3916 Posts
user info
edit post

dlinq (or linq to sql) depending on the application. Then ofcourse add caching and offline syncing. and do all of that through a webservice...

but it really depends on what you are doing...

5/20/2008 2:47:10 PM

evan
All American
27701 Posts
user info
edit post

subsonic is a lifesaver

5/20/2008 4:57:12 PM

 Message Boards » Tech Talk » .NET Datasets Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.