日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

ef mysql modelfirst_MySQL –EF edmx(Model First)– Sql Server table

發(fā)布時間:2025/3/11 数据库 17 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ef mysql modelfirst_MySQL –EF edmx(Model First)– Sql Server table 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

一、mysql environment

When we create an new database,first We need draw er diagram for somebody to show your idea,but our company have no good

authorised tool to design sqlserver ER diagram,so I use mysql graphical tool to design it, after that,you can use mysql to create edmx

us entityframwork,and use this edmx to create new sqlserver database or table.The following is details:

1、first you need install mysql,the download address is http://dev.mysql.com/downloads/windows/installer/,this version is no need to install,

after that,you need install mysql,the install detail and config,you can see the article.

for operating mysql database conviniently,you can download grapahics tool workbencn

after you create new datatable use mysql.

二、EntityFrameWork 6.0.0.0 connect Mysql to create EF

note:(1)you need install MySQL for Visual Studio and Connector/Net correctly,otherwise you will happen some terrible,

for example;you will not find? mysql Databse option。

(2)if you have isntall ef,but?don't find??ADO.Net entity Data Model,maybe you have make something wrong,you

can uninstall Entity framework at control panel and reinstall it.

三、EF edmx create sqlserver database。

1、you can use Generate Database from Model to create sqlserver table

2、change connection Type to Sql server? and connect to database you want to create table

2、Next you will meet the following error

you need change edmx file xml,click right mouse on edmx file,and you will find the following and

edit。

use

after that,you build project,you will find the following error,you need delete Precision and rebuild again.

If you want define table column type,you can define at this palce,and it will affect database table type。

After that,you can use Generate Database from Model ,you can see the following window means

it is success,you can copy script to sqlserver studio to execute it or not。

總結

以上是生活随笔為你收集整理的ef mysql modelfirst_MySQL –EF edmx(Model First)– Sql Server table的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。