MySql的类型提供程序 [英] Type provider for MySql

查看:78
本文介绍了MySql的类型提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找有关如何连接到MySql数据库并使用F#类型提供程序的示例,但是我找不到在线任何内容.

I've been searching for an example on how to connect to a MySql database and use F# type providers but I could not find anything online.

有人可以给我一个线索吗?我需要什么(如果有的话)额外的包裹?我是否使用SqlDataConnectionSqlEntityConnection.

Can anyone give me a clue? What - if any - extra packages do I need? Do I use SqlDataConnection or SqlEntityConnection.

对不起,但是我完全迷失了.任何和所有帮助,不胜感激.我喜欢类型提供程序的想法,并且在函数式编程方面有丰富的经验,但正是围绕它的设置才使我受益.

Excuse my ignorance but I'm totally lost. Any and all help is appreciated. I love the idea of type providers and have a fair amount of experience with functional programing but it's the setup around this that gets me.

推荐答案

我不认为目前没有可以与MySQL一起使用的现成的类型提供程序.但是,罗斯·麦金莱(Ross McKinlay)一直在为SQL数据库开发更好的类型提供程序(更广泛地说).目前,它可与MS SQL Server和SQL Lite一起使用.

I don't think there is out-of-the box type provider that would work with MySQL at the moment. However, Ross McKinlay has been working on a better type provider for SQL databases (more generally). It currently works with MS SQL server and SQL Lite.

应该有可能编写一个扩展程序以支持MySQL,而其工作量却很小(但遗憾的是,它尚未完成).有关详情,请参见他的博客.我敢肯定,欢迎捐款!

It should be possible to write an extension to support MySQL with fairly small amount of work (but sadly, it has not been done yet). See his blog for details. I'm sure that contributions are welcome!

这篇关于MySql的类型提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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