在UWP中使用C#连接和读取.MDB项 [英] connect and read .MDB item with C# in UWP

查看:682
本文介绍了在UWP中使用C#连接和读取.MDB项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个UWP应用程序,并且想要读取一个MDB文件以将此数据库转换为SQLite数据库。

I'm developing a UWP application and want to read a MDB file to convert this database to a SQLite database.

我读到我可以使用 OleDbConnection 以打开MS Access数据库:用C#连接和读取.MDB项目

I read that i could use OleDbConnection to open MS Access database following this topic : connect and read .MDB item with C#

但是OleDbConnection在UWP项目中不可用。它似乎不适用于 System.data

But OleDbConnection is not available in UWP project. It seems not available in System.data

你知道解决方案以编程方式读取UWP应用程序中的MDB文件吗?

Do you know solution to read MDB file in a UWP application programatically?


编辑

Microsoft小组回答了我此信息:

Microsoft team answered me this information :

目前,没有内置API或工具符合第三UWP
开箱即用,允许您这样做

Currently, there are no in-box API, or tools compliant third UWP out-of-the-box that allows you to do that.

这一点的路线图没有任何内容。

There is nothing in the roadmap for the moment regarding this point!

我建议你两个轨道探索:

I propose you two tracks to explore:


  • 将.mdb文件转换为sqlite准备使用。

  • 显示您的mdb数据的API。


推荐答案

没有什么内箱可以做到这一点。我不知道任何第三方库了解.MDBs并支持UWP应用程序。

There's nothing in-box to do this. I'm not aware of any 3rd party libraries that understand .MDBs and supports UWP apps.

我会从非UWP应用程序转换.MDB到SQLite,那么只有与SQLite的UWP应用程序交易。

I'd convert the .MDB to SQLite from a non-UWP app and then have the UWP app deal only with SQLite.

它看起来像有许多现有的工具进行转换

这篇关于在UWP中使用C#连接和读取.MDB项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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