473,383 Members | 1,818 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,383 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 3926
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.