覆盖与MySql的SQL SERVER 2005连接 [英] Overriding SQL SERVER 2005 connection with MySql
本文介绍了覆盖与MySql的SQL SERVER 2005连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过MySql覆盖SQL Server 2005连接请帮助
How can i overwrite the SQL server 2005 connection by MySql please help
推荐答案
1)安装 mysql连接器 [ ^ $
2)添加对mysql特定组合的引用
3)根据文档替换所有SQL Server特定对象与mysql特定对象的代码: http://dev.mysql.com/doc/refman/5.1 /en/connector-net-ref-mysqlclient.html [ ^ ]
4)更改连接字符串: http://www.connectionstrings.com/mysql [ ^ ]
不仅您使用EF,还应查看以下文章:将MySQL与实体框架结合使用 [ ^ ]
1) install mysql connector[^]
2) add reference to the mysql specific assamblies
3) replace in your code all SQL server specific objects with mysql specific ones according to the documentaton: http://dev.mysql.com/doc/refman/5.1/en/connector-net-ref-mysqlclient.html[^]
4) change connection string: http://www.connectionstrings.com/mysql[^]
Not only if you are using EF, you should check this article: Using MySQL with Entity Framework[^]
这篇关于覆盖与MySql的SQL SERVER 2005连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文