Log*_*ick 6 enterprise-library
我正在尝试使用Microsoft企业库中的DatabaseFactory方法.
using Microsoft.Practices.EnterpriseLibrary.Data;
Run Code Online (Sandbox Code Playgroud)
我得到的错误是: The type or namespace 'Practices' does not exist in the namespace Microsoft
我尝试去微软的网站安装企业库,完成安装过程,但仍然无法正常工作.我把它安装到了错误的位置吗?有任何想法吗?
编辑:我遵循了Kev的指示,让一切正常.谢谢你们的帮助.
您需要在项目中添加引用:
Microsoft.Practices.EnterpriseLibrary.Common.dllMicrosoft.Practices.EnterpriseLibrary.Data.dll
假设您已安装Enterprise Library 4.1 - October 2008,默认安装位置将为:
C:\Program Files\Microsoft Enterprise Library 4.1 - October 2008\
您可以在以下位置找到需要引用的程序集:
C:\Program Files\Microsoft Enterprise Library 4.1 - October 2008\Bin
这些程序集也列在"添加引用(.NET)"对话框中:
Enterprise Library Data Access Application Block
Enterprise Library Shared Library
| 归档时间: |
|
| 查看次数: |
13400 次 |
| 最近记录: |