I will give you overall answer for your questions 1,2 and 3.
It is not necessary to split Data Access Layer to two projects, you can have one project, which is used only by Business Logic Layer. Then you will not have any issues when using it in the presentation layer.
You can use DTO layers
with the Add OpenAccess Service Wizard
. For more information and to see how its implemented, we provide a video
and two samples in our SDK:
- WinForms: Sofia Car Rental - WCF Plain Service with Windows Forms
- WPF: Sofia Car Rental - WCF Plain Services
For your 4. question, there is a risk if the OpenAccessContext instance is not disposed when it is not needed. It is a good practice a short living context to be used:
(EntitiesModel dbContext =
Thus, you will make sure, the context is properly disposed and the underlying connection is closed.
OpenAccessORM transactions are fully automated with the context. Here
you can find more information about them and how you can handle them.
If any other questions arise, do not hesitate to contact us back.
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.