Zxw.Framework.NetCore icon indicating copy to clipboard operation
Zxw.Framework.NetCore copied to clipboard

关于demo如何启动并实现操作数据库

Open luobingbing0207 opened this issue 4 years ago • 10 comments

您好。。作者大大,我下载了您的demo,运行了之后 Microsoft.Hosting.Lifetime: Information: Now listening on: http://[::]:8188 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. 不会自动弹出网页哎。。并且域名也没有弹出来,。,是我打开的方式不对么???或者能否出一个demo的详细版本分析资料呀。。。。因为工作需要,我需要netcore链接sqlserver和oracle数据库呢,。在线等,大佬

luobingbing0207 avatar May 13 '20 09:05 luobingbing0207

8188是监听端口,可以在Program.cs里面修改。项目启动后,直接在浏览器输入http://localhost:8188/访问即可。 @luobingbing0207

VictorTzeng avatar May 14 '20 01:05 VictorTzeng

好的呢。。谢谢大佬。。对了。。大佬。。 "MsSqlServer": "initial catalog=NetCoreDemo;data source=.;password=123456;User id=sa;MultipleActiveResultSets=True", "PostgreSQL": "User ID=postgres;Password=123456;Host=localhost;Port=5432;Database=ZxwPgDemo;Pooling=true;", "Redis": "127.0.0.1:6379,abortConnect=false,connectRetry=3,connectTimeout=3000,defaultDatabase=1,syncTimeout=3000,version=3.2.100,responseTimeout=3000", "MySQL": "Server=localhost;Database=test; User ID=test;Password=123456;port=19800;CharSet=utf8;pooling=true;" 哪一个是sqlserver的呀??

luobingbing0207 avatar May 14 '20 03:05 luobingbing0207

MsSqlServer

VictorTzeng avatar May 14 '20 03:05 VictorTzeng

那么我该在哪里去 讲 访问的 数据库源换成sqlserver呢???能否同时链接sqlserver和oracle?感谢大佬

luobingbing0207 avatar May 14 '20 03:05 luobingbing0207

你可以先研究一下,下班了我回去新建个分支写个demo哈

VictorTzeng avatar May 14 '20 03:05 VictorTzeng

好的呢。。谢谢大佬啦。。么么哒

luobingbing0207 avatar May 14 '20 03:05 luobingbing0207

大佬大佬。。。demo上传了木有呀。。在线等。。

luobingbing0207 avatar May 15 '20 00:05 luobingbing0207

大佬大佬。。。demo上传了木有呀。。在线等。。

==,昨晚遇到了些问题,没解决完。估计今晚可以commit

VictorTzeng avatar May 15 '20 02:05 VictorTzeng

....在线等,大佬

luobingbing0207 avatar May 16 '20 05:05 luobingbing0207

....在线等,大佬

拉取multi-db分支

VictorTzeng avatar May 17 '20 06:05 VictorTzeng