hi everybody,
i have just started to use strongly typed datasets (which seems to me as a wonderful tool) and i saw there are correspond adapters for every strongly typed table, but i could not understand how to use those adapters for reading not all the table's rows, but part of them by some query...
thanks a lot:)
Loading
Ashley ArgilePosted Oct 2, 2008, 8:53 AM
Personally I prefer to add my own data adapters as they seem to be more flexible.
Regards
Ashley
Ashley ArgilePosted Oct 5, 2008, 5:15 AM
Itay,
Business and Enterprise software is frequently based on a tiered architecture. This normlly consists of a Data Access Layer that communicates with your Database, a Business Logic layer that implements processing specific to the business and finally a Presentation layer that implements the UI. i.e.
So an interaction with the UI could result in calls moving down through all of the layers.
Presentation Layer -> Business Logic -> Data Access Layer -> Database.
These layers do not necessarily have to be implemented on the same physical machine. The presentation layer could even be a web app running in your browser (It doesn't have to be a web app though). And here's another article which might help explain things (this one is a ASP.NET application but it could equally be a WinForms app)....
As for strongly typed datasets in business software, the application I work on uses them quite successfully although a good alternative is to create data objects using NHibernate. I don't know much about NHibernate at the moment but my company is looking at it as an alternative to datasets. Strongly Typed datasets are definitely worth knowing though!
Regards Ashley
ItayPosted Oct 4, 2008, 4:16 AM
what exactly is that data access layer? does it refer to datasets etc.?
and one more question... do you whether or not it is customary to use strongly typed datasets in business?
thanks a lot again
Ashley ArgilePosted Oct 3, 2008, 2:00 AM
Regards
Ashley
p.s. I'm no expert on this stuff. I just use them everyday.
ItayPosted Oct 2, 2008, 4:02 PM
but with pure SqlDataAdapter you must rewrite the connection string and all that stuff, every time, don't you?