473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VB .Net Generic Classes

Are there any generic classes available that can be used in VB.Net to
perform common tasks such as Database Access and Logging?
Nov 21 '05 #1
6 3927
Huh? Database access in .NET (doesn't matter what language) is handled via
the classes that make up ADO.NET.

"Robin" <ro*******@hotmail.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Are there any generic classes available that can be used in VB.Net to
perform common tasks such as Database Access and Logging?

Nov 21 '05 #2
Huh? Database access in .NET (doesn't matter what language) is handled via
the classes that make up ADO.NET.

"Robin" <ro*******@hotmail.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Are there any generic classes available that can be used in VB.Net to
perform common tasks such as Database Access and Logging?

Nov 21 '05 #3
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" <ro*******@hotmail.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Are there any generic classes available that can be used in VB.Net to
perform common tasks such as Database Access and Logging?

Nov 21 '05 #4
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" <ro*******@hotmail.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Are there any generic classes available that can be used in VB.Net to
perform common tasks such as Database Access and Logging?

Nov 21 '05 #5
Robin,
You mean like the Data Access Application Bock:

http://support.microsoft.com/default...b;en-us;829028

Or the Exception Management Application Block:

http://support.microsoft.com/default...b;en-us;829026

Or the Logging Application Block:

http://msdn.microsoft.com/library/de...ml/logging.asp
There are a number of other application blocks available at:

http://msdn.microsoft.com/library/de...ServiceAgg.asp

Hope this helps
Jay

"Robin" <ro*******@hotmail.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Are there any generic classes available that can be used in VB.Net to
perform common tasks such as Database Access and Logging?

Nov 21 '05 #6
Robin,
You mean like the Data Access Application Bock:

http://support.microsoft.com/default...b;en-us;829028

Or the Exception Management Application Block:

http://support.microsoft.com/default...b;en-us;829026

Or the Logging Application Block:

http://msdn.microsoft.com/library/de...ml/logging.asp
There are a number of other application blocks available at:

http://msdn.microsoft.com/library/de...ServiceAgg.asp

Hope this helps
Jay

"Robin" <ro*******@hotmail.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Are there any generic classes available that can be used in VB.Net to
perform common tasks such as Database Access and Logging?

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Johnas Owan | last post by:
Hi! I'd like to build xml out of some c# classes with the XMLSerializer. My problem is: I have an envelope and want to fill it with different types of sub-nodes. But I don't like to build the...
1
by: Rod Bass | last post by:
I was disappointed to see that you can't use a parameter type as a base class for a generic class. I would find it extremely useful to extend a generic type of class (as is done nicely using C++...
0
by: Robin | last post by:
Are there any generic classes available that can be used in VB.Net to perform common tasks such as Database Access and Logging?
3
by: Anatoli Koutsevol | last post by:
Is there some way to determine size in bytes for a type parameter T in generic class cls<T>. For instance, I need some generic way to covert T array to an array of bytes and conversely, as in...
3
by: Tigger | last post by:
I have an object which could be compared to a DataTable/List which I am trying to genericify. I've spent about a day so far in refactoring and in the process gone through some hoops and hit some...
3
by: =?Utf-8?B?Sm9hcXVpbg==?= | last post by:
OK, this was hard to explain on a short title. Sorry. I have an abstract class (MustInherit) named Base, and a generic collection class named ColBase which can only take Base and derived classes...
5
by: Torben Laursen | last post by:
I am writing a COM in C# using visual studio 2005 and VSTO. Inside the code I use some support classes that are generic but they are not used in the inferface of the COM. However I still get a...
2
by: =?Utf-8?B?Sm9obk1TeXJhc29mdA==?= | last post by:
I have a generic class defined. My "server" code wants to call methods on the generic class after I've assigned the type to it. I was trying to do this via a SELECT CASE statement but I can't...
1
by: raylopez99 | last post by:
Here is an example of a home grown generic class, representing a pair of values. Adapted from Jon Skeet's book "C# In Depth". The generic class is "sealed" for some reason (I think for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.