UnitOfWork
UnitOfWork copied to clipboard
Why Repository Methods of Insert Never Return Entity just inserted
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!
在许多情况下,我们将需要显示刚刚插入的内容。但是insert方法从不返回实体或它的Id。无法找到插入的那个!
你可以自己新增返回实体的方法