G
Gregory A. Beamer
I am looking at making a "framework", of sorts, that is data access
technology agnostic. In order to completely go this route with .NET, I need
to add some sort of mapping or translation layer that maps from the .NET
types DataSets, LINQ, EF to domain objects. And, yes, EF 4.0 will be very
easy with the POCO bits.
What I am pondering now is the best way to link the objects together to keep
it so the business layer can consume without having to know the actual data
types. I have some ideas on this, but wanted to see what others thought to
get a sanity check. I had a suggestion from someone to pass the Repository
to the Translator and encapsulate it that way and another who suggested
creating an object that marries the two, both translator and repository
passed to an object that spits out domain objects. Both are highly testable,
but I am not sure I like the creation of another black box.
I am going to play, but thought it might be neat to get some feedback on
what other people think about the problem.
--
Peace and Grace,
Greg
Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com
************************************************
| Think outside the box! |
************************************************
technology agnostic. In order to completely go this route with .NET, I need
to add some sort of mapping or translation layer that maps from the .NET
types DataSets, LINQ, EF to domain objects. And, yes, EF 4.0 will be very
easy with the POCO bits.
What I am pondering now is the best way to link the objects together to keep
it so the business layer can consume without having to know the actual data
types. I have some ideas on this, but wanted to see what others thought to
get a sanity check. I had a suggestion from someone to pass the Repository
to the Translator and encapsulate it that way and another who suggested
creating an object that marries the two, both translator and repository
passed to an object that spits out domain objects. Both are highly testable,
but I am not sure I like the creation of another black box.
I am going to play, but thought it might be neat to get some feedback on
what other people think about the problem.
--
Peace and Grace,
Greg
Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com
************************************************
| Think outside the box! |
************************************************