EFCore專案中不同資料庫需要安裝的包
阿新 • • 發佈:2022-03-10
-
Oracle
Install-Package Microsoft.EntityFrameworkCore Install-Package Oracle.EntityFrameworkCore Install-Package Microsoft.EntityFrameworkCore.Tools Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design
-
連線字串:
"Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));User Id=登入名;Password=密碼;"
-
-
SqlServer
Install-Package Microsoft.EntityFrameworkCore Install-Package Microsoft.EntityFrameworkCore.SqlServer Install-Package Microsoft.EntityFrameworkCore.Tools Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design
-
連線字串
"Data Source=192.168.12.34;Initial Catalog=資料庫名稱;User ID=登入名;Password=密碼"
-
-
MySQL
Install-Package MySql.Data.EntityFrameworkCore -Pre Install-Package Pomelo.EntityFrameworkCore.MySql Install-Package Microsoft.EntityFrameworkCore.Tools Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design
-
連線字串
"server=.;userid=root;pwd=xxx;port=3306;database=dbtest;sslmode=none;"
-