在VB.NET中创建类库 [英] Creating a Class Library in VB.NET

查看:55
本文介绍了在VB.NET中创建类库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在VB.NET中创建一个类库,该类库将连接到Oracle数据库。

I need to create a class library in VB.NET that will connect to an Oracle database.

然后我将执行一些函数以从数据库中检索信息。

I would then be executing some functions to retrieve informations from a database.

然后我需要在ASP.Net 2.0项目中使用此类。

I would then need to utilize this class in ASP.Net 2.0 project.

有人会关心

谢谢。

推荐答案

当我不得不为第一次处理数据库而创建一个库时;我不确定如何开始,因为我不知道确切的术语要搜索。

When I had to create a library just for dealing with database for the first time; I wasn't sure how to get started since I didn't know exact terminology to search for.

如果您搜索如何创建 DAL(数据访问层) ),您应该能够找到实现所需内容的许多方法。

If you search for how to create "DAL" (Data Access Layer), you should be able to find out many many ways to achieve what you are looking for.

通常,DAL与使用它的位置无关,因此您可以使用在ASP.NET,WinForms或WPF等文件中。
而且,您也可以编写DAL,而不必担心要连接到Oracle还是其他RDBMS。

Usually DAL is independent of where it is being used so that you can use it in ASP.NET, or WinForms or WPF, etc. And also you can write DAL in a way that you don't have to worry about whether you are connecting to Oracle or other RDBMS.

无论如何,这里的关键字是 DAL

Anyways, the keyword here is DAL

这篇关于在VB.NET中创建类库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆