mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修复 读写分离创建 IFreeSql 时如果从库不可用导致 iis 退出的 bug;
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user