首先从数据库中通过代码自动构建MySQL表 [英] Auto building MySQL tables through code first from database
本文介绍了首先从数据库中通过代码自动构建MySQL表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
早上好,
我错过了一些内容,我似乎无法对MySQL做同样的事情。 MS SQL是否首先通过代码从数据库构建数据库?
Am I missing something in that I cannot seem to do the same with MySQL as I can with MS SQL to build out a database through code first from database?
我通过nugget添加了MySQL.Data.Entity,但似乎没有作为门票。
I added MySQL.Data.Entity through nugget but that didn't seem to be the ticket.
当我在Visual Studio中完成这个过程时,只有SQL Server提供程序。
There is only SQL Server providers when I go through the process in Visual Studio.
如果为MySQL执行此操作,是否需要输入表格?
Do I need to hand type out the tables if doing this for MySQL?
推荐答案
要扩展,我不是在谈论在数据库中创建表,我正在谈论自动将它们添加到代码中。
To expand, I am not talking creating the tables in the database, I am talking auto adding them to code.
这篇关于首先从数据库中通过代码自动构建MySQL表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文