ORM Against a Service-Wrapped Data Source

Posted by blaster on Stack Overflow See other posts from Stack Overflow or by blaster
Published on 2010-05-20T21:57:07Z Indexed on 2010/05/20 22:00 UTC
Read the original article Hit count: 163

Filed under:
|
|

We are tasked with migrating an existing set of entities (currently POCOs persisted with NHibernate against an MSSQL database) to now persist to some kind of web service (yet to be built, either RESTful or SOAP-based, and that we control).

I like how NHibernate encapsulates the persistence concerns and lets us maintain a logic-rich, persistence-agnostic domain model. Is there any way to make NHibernate talk to a web service at the back end instead of a SQL database directly? In other words, can "service instead of SQL database" be treated as a persistence implementation detail and allow us to continue to use NHibernate?

Am I asking the right question? :)

© Stack Overflow or respective owner

Related posts about orm

Related posts about web-services