在ASP.Net Core下使用C#进行MS Access数据库连接 [英] MS Access Database Connection with C# under ASP.Net Core

查看:1502
本文介绍了在ASP.Net Core下使用C#进行MS Access数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的新项目(ASP.Net Core Framework)与Access Database连接.

I am trying to connect my new Project (ASP.Net Core Framework) with Access Database.

我需要输入什么:appsettings.json -> "ConnectionStrings"?

我需要为此安装一些东西吗?

And do I have to install something for it?

这个框架是新的,不幸的是,我在Internet上找不到很多.

This framework is new and unfortunately I found no much on the Internet.

我需要完全连接"Access数据库".

I need to connect exactly "Access database".

我很高兴获得详细信息.

I would be very happy for detailed information.

推荐答案

使用"访问数据库引擎",它为您的应用程序提供了ODBC接口.确保使用64位版本(因为dotnet核心仅64位).请注意,它仅对单线程访问是安全的.在安装时使用被动参数,因为不需要其他Access组件.

Use the "Access Database Engine", which provides an ODBC interface to your application. Be sure to use the 64-bit version (since dotnet core is 64 bit only). Note that it is safe for single-threaded access only. Use the passive parameter at install since the additional Access components are not needed.

AccessDatabaseEngine_X64.exe /passive

这篇关于在ASP.Net Core下使用C#进行MS Access数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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