This commit is contained in:
2881099
2023-05-30 09:42:35 +08:00
parent 1250f4f3af
commit a76f7907f9
37 changed files with 103 additions and 62 deletions

View File

@ -34,12 +34,12 @@ namespace aspnetcore_transaction.Controllers
}
[HttpGet("2")]
//[Transactional]
[Transactional]
public async Task<object> GetAsync([FromServices] BaseRepository<Song> repoSong, [FromServices] BaseRepository<Detail> repoDetail, [FromServices] SongRepository repoSong2,
[FromServices] SongService serviceSong)
{
await serviceSong.Test2();
await serviceSong.Test3();
await repoSong.InsertAsync(new Song());
await repoDetail.InsertAsync(new Detail());
return "111";
}
}