- 修复 读写分离创建 IFreeSql 时如果从库不可用导致 iis 退出的 bug;

This commit is contained in:
28810
2020-03-04 13:10:17 +08:00
parent 34ba9fbf4f
commit 780b963267
16 changed files with 32 additions and 41 deletions

View File

@ -235,9 +235,9 @@ namespace dbcontext_01.Controllers
// GET api/values/5
[HttpGet("{id}")]
public ActionResult<string> Get(int id)
public ActionResult<object> Get(int id)
{
return "value";
return _orm.Select<Song>().Where(a => a.Id == id).First();
}
// POST api/values