473,626 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3962
Huh? Database access in .NET (doesn't matter what language) is handled via
the classes that make up ADO.NET.

"Robin" <ro*******@hotm ail.com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.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*******@hotm ail.com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.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*******@hotm ail.com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.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*******@hotm ail.com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.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*******@hotm ail.com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.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*******@hotm ail.com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.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
3997
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 envelope class for each subsystem class again and again. Instead the type of sub-node shall be choosen during runtime. Is there a way to use class inheritance or something like that?
1
3982
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++ templates). For example: public class SoapClientProtocolWithHeaders<T>: T where T: System.Web.Services.Protocols.SoapHttpClientProtocol { protected NameValueCollection m_Headers = new NameValueCollection(); public NameValueCollection Headers...
0
216
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
11982
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 BitConverter.GetBytes. To create a buffer I'd like to have something like this T srcData; byte buffer = new byte;
3
2755
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 dead ends. I'm posting this to get some feedback on wether I'm going in the right direction, and at the same time hopefully save others from going through the process.
3
4264
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 as it's type. I also have an indefinite number of classes that inherit Base. I want to make a method on Base that returns a ColBase(of Base), but instead of ColBase(of Base) use the derived class.
5
11117
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 number of warnings from the compiler like: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning : Type library exporter warning processing 'Utility.Array1D`1, Test2003'. Warning: Type library exporter encountered a...
2
1879
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 seem to determine how to declare the object at the module level (so I can use it in several methods) but assign the type when I create the instance. Probably this isn't the appropriate way to use Generics so if there are suggestions, I'm open to...
1
2456
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 performance) so you cannot derive from it, but that's optional. The main thing in this example is to show the right format for using these generic classes, which was not present in the code snippet in Skeet's book. Does anybody know why the .Equals...
0
8262
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8701
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.