-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Installation Guide
ansonzhang edited this page May 29, 2019
·
6 revisions
注意:目前支持 Sqlite、Sqlserver、Mysql、Oracle,如果想要开启指定的数据库,直接 Enabled 为 true 即可,且优先级上边的最高,比如你同时开启了两个,只有上边的起作用。
1、在Blog.Core层 appsettings.json 中,配置自己的字符串
"Sqlite": {
"Enabled": false,
"SqliteConnection": "Data Source=WMBlog.db"
},
"SqlServer": {
"Enabled": false,
"SqlServerConnection": "Server=.;Database=WMBlogDB;User ID=sa;Password=123;",
"ProviderName": "System.Data.SqlClient"
},
"MySql": {
"Enabled": true,
"MySqlConnection": "Server=localhost; Port=3306;Stmt=; Database=wmblogdb; Uid=root; Pwd=456;"
},
"Oracle": {
"Enabled": false,
"OracleConnection": "Provider=OraOLEDB.Oracle; Data Source=WMBlogDB; User Id=sss; Password=789;",
"OracleConnection_other1": "User ID=sss;Password=789;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.8.65)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME = orcl)))"
},
"Date": "2018-08-28",
"SeedDBEnabled": false,
"Author": "Blog.Core"
具体请参考这个 wiki:
有疑问,请自行查看博客园文章:https://www.cnblogs.com/laozhang-is-phi/p/9495618.html#autoid-1-0-0
或者加 QQ 群:867095512
-
- AOP
- Appsettings
- Async-Await
- Authorization-Ids4
- Authorization-JWT
- AutoMapper
- CORS
- DI-AutoFac
- DI-NetCore
- Filter
- GlobalExceptionsFilter
- HttpContext
- Log4
- MemoryCache
- Middleware
- MiniProfiler
- publish
- Redis
- Repository
- SeedData
- SignalR
- SqlSugar
- SqlSugar-Codefirst&DataSeed
- SqlSugar-SqlAOP
- Swagger
- T4
- Test-xUnit
- Temple-Nuget
- FAQ page is a good place to see whether your question is already asked.
- Ask a question in cnblogs if you need help.
- Submit an issue if you found a bug or have a feature request.
- Open a pull request when you prepared to contribute. Before that, it is encouraged to open an issue to discuss.