Need advise about Umbraco DataContext use of entities
Hello,
I have come up with a question about entities taken from generated umbraco datacontext.
Looking from a layered architecture perspective, where I want to use Presentation, Business and Data layers, would it be a good approach to use entities from generated umbraco Data Context (which in my opinion should be placed in Data layer ) in presentation layer or would it be better to create some "duplicate" entities in Business layer and write a translator within DAO which would translate Umbraco DataContext entities into the Business layer entities? Or is it a good approach just to use the generated ones across the solution ?
Or maybe I missunderstand some concepts and there is some other right way to use datacontext in layered approach?
Need advise about Umbraco DataContext use of entities
Hello,
I have come up with a question about entities taken from generated umbraco datacontext.
Looking from a layered architecture perspective, where I want to use Presentation, Business and Data layers, would it be a good approach to use entities from generated umbraco Data Context (which in my opinion should be placed in Data layer ) in presentation layer or would it be better to create some "duplicate" entities in Business layer and write a translator within DAO which would translate Umbraco DataContext entities into the Business layer entities? Or is it a good approach just to use the generated ones across the solution ?
Or maybe I missunderstand some concepts and there is some other right way to use datacontext in layered approach?
Thanks for answers!:)
is working on a reply...