UnitOfWork icon indicating copy to clipboard operation
UnitOfWork copied to clipboard

Why Repository Methods of Insert Never Return Entity just inserted

Open dongfo opened this issue 5 years ago • 1 comments

in many stituation, we will need to display something just inserted. but the insert method never return the entity or it's Id . There's no way to find the one inserted!

dongfo avatar Apr 16 '19 02:04 dongfo

在许多情况下,我们将需要显示刚刚插入的内容。但是insert方法从不返回实体或它的Id。无法找到插入的那个!

你可以自己新增返回实体的方法

panda-big avatar Nov 28 '19 09:11 panda-big