wcf - How to implement repository pattern for multiple database -
we have 2 presentation projects (classic asp , asp.net, uses "nhibernate best practices asp.net" (predecessor or sharp architecture). rewrite classic asp silverlight + wcf(maybe ria services).
we have following database architecture: * 1 global data database - contains users , projects meta info * each project has own database store project-specific info - same schema
we able hack bit make multiple databases work in asp.net because "nhibernate best practices asp.net" uses dao factories, can hack bit create connection string - base on projectid - pass factory create corresponding nhibernate session.
for rewrite, use repository pattern sharp architecture. couldn't figure out how similar hack...
any appreciated.
have @ ncommon framework provides nice foundation multi-database support in nhibernate explained in blog post.
Comments
Post a Comment