.Net 5.0 项目数据库连接字符串

2021/4/17 19:26:43

本文主要是介绍.Net 5.0 项目数据库连接字符串,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 1 1.MSSQLSERVER
 2 
 3 "ConnectionStrings": {
 4 
 5   "DefaultConnection": "Server=127.0.0.1;Database=HXCDataPermission_test;user id=sa;password=sasa;MultipleActiveResultSets=true"
 6 
 7 }
 8 
 9 2.Oracle
10 
11 "ConnectionStrings": {
12 
13   "DefaultConnection": "User Id=system;Password=orcl;Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))"
14 
15 }
16 
17 3.MySql
18 
19 "ConnectionStrings": {
20   "DefaultConnection": "server=127.0.0.1;database=mydatabase;user=root;pwd=root"
21 }
22 
23 4.Redis
24 
25 "ConnectionStrings": {
26 
27   "RedisConnection": "127.0.0.1:6379,password=redis"
28 
29 }

 



这篇关于.Net 5.0 项目数据库连接字符串的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程