简体   繁体   English

UnitOfWork 模式不与 petaPoco ORM 一起使用?

[英]UnitOfWork pattern not using with petaPoco ORM?

I am new to PetaPoco ORM in .net and i found it quite confused when i take a look on to the business logic part, where we are not using UnitOFWork pattern along with Repository pattern.我是 .net 中 PetaPoco ORM 的新手,当我查看业务逻辑部分时我发现它很困惑,我们没有使用 UnitOFWork 模式和存储库模式。 We usually use unitOfWork pattern along with Repository pattern in Entity FrameWork.我们通常在实体框架中使用 unitOfWork 模式和 Repository 模式。 Do anybody know why unitOfWork pattern not using in PetaPoco ORM?有人知道为什么在 PetaPoco ORM 中没有使用 unitOfWork 模式吗?

If you reffer to the petapoco documentation here -> http://www.toptensoftware.com/petapoco/如果您在此处参考 petapoco 文档-> http://www.toptensoftware.com/petapoco/

And do a search for "transaction" you will find the clostest thing to unit of work that exists within petapoco.并搜索“事务”,您会发现与 petapoco 中存在的工作单元最接近的事物。

Hope that helps..希望有帮助..

Remember this is a mirco ORM so it may not have everything you are looking for.. if you want speed then other than hand coding your DAL there isnt (in my opinion) any other route to take.请记住,这是一个 mirco ORM,因此它可能没有您要寻找的一切。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM