.net - Dynamic Data Access Layer with EF4.3 -


i have been tasked designing data access layer connect tables interchangable schemas(used permissions , separation). database may different each call (because of business rules). plan on using entity framework 4.3(all existing apps use using entity framework) poco classes (to prevent multiple dev's accidently using model generator against that's customized) , dbcontext (so compact framework without code generating). plan on utilizing dbmodelbuilder , entityconnectionstringbuilder achieve these dynamic situations. done or have better solution?

there extensions visual studio auto generate poco's using t4 templates. there t4 templates auto generating repositories , associated interfaces. these options have ability add options make easier working wcf. here visual studio extension link.

http://visualstudiogallery.msdn.microsoft.com/ff781f46-d8c3-45e0-a545-40906921bb86

this extension automatically updates poco classes if .edmx resides in same namespace. options changing name space or project , separating poco's project separate dal achievable must tell poco's changes.

i hope answers question. doesn't can take stab @ additional context.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -