VB .Net Generic Classes

  • Thread starter Thread starter Robin
  • Start date Start date
R

Robin

Are there any generic classes available that can be used in VB.Net to
perform common tasks such as Database Access and Logging?
 
Huh? Database access in .NET (doesn't matter what language) is handled via
the classes that make up ADO.NET.
 
There aren't any generic classes for data access as such - the classes have
specific functionality based on the underlying data access technique (OleDB,
ODBC, etc). However, the classes implement a common interface; you can write
your own generic classes implementing these interfaces to allow for a more
generic data access layer.
eg: All Connection classes (SqlConnection, OdbcConnection, etc) implement
the IDbConnection interface. Similarly, all command classes (SqlCommand,
OleDbCommand, etc) implement the IDbCommand interface.

Is that what you were looking for?

hope that helps..
Imran.
 
Robin,
You mean like the Data Access Application Bock:

http://support.microsoft.com/default.aspx?scid=kb;en-us;829028

Or the Exception Management Application Block:

http://support.microsoft.com/default.aspx?scid=kb;en-us;829026

Or the Logging Application Block:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/logging.asp


There are a number of other application blocks available at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/ServiceAgg.asp

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top