安装Microsoft Enterprise Libraries和DatabaseFactory [英] Installing Microsoft Enterprise Libraries and DatabaseFactory

查看:66
本文介绍了安装Microsoft Enterprise Libraries和DatabaseFactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用Microsoft Enterprise Library中的DatabaseFactory方法。

I'm attempting to use the DatabaseFactory method from the Microsoft Enterprise Library.

using Microsoft.Practices.EnterpriseLibrary.Data;

我得到的错误是:类型或名称空间 Practices没有Microsoft的命名空间中存在

我尝试去Microsoft的站点安装企业库,通过安装过程进行了工作,但仍然没有工作。我将其安装在错误的位置了吗?有想法吗?

I tried going to Microsoft's site to install the Enterprise Library, worked through the installation process and it still doesn't work. Did I install it to the wrong location? Any ideas?

编辑:我按照Kev的指示进行了所有工作。谢谢您的帮助。

I followed Kev's directions and got everything working. Thanks for your guys' help.

推荐答案

您需要在项目中添加引用至:

You need to add references in your project to:


Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices。 EnterpriseLibrary.Data.dll

假设您已安装 Enterprise Library 4.1-2008年10月,默认安装位置为:

Assuming you installed Enterprise Library 4.1 - October 2008, the default install location will be:


C:\Program Files\ \Microsoft Enterprise Library 4.1-2008年10月\

您可以在以下位置找到需要引用的程序集:

You can locate the assemblies you need to reference in:


C:\Program Files\Microsoft Enterprise Library 4.1-2008年10月\Bin

这些程序集也列在添加引用(.NET)对话框中:

These assemblies are also listed in the Add References (.NET) dialogue:


企业图书馆数据访问应用程序块

En terprise图书馆共享图书馆

这篇关于安装Microsoft Enterprise Libraries和DatabaseFactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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