Beginner |
|
Joined: Wed Jul 19, 2006 8:24 am Posts: 35
|
First off you can't serialize an interface so you'll need to remove your collections or use xmlignore. Proxies and lazy loading are issues too. The way I've dealt with this is to create a light weight data access layer that doesn't have any collections defined. This light weight layer is specifically created to get around serialization issues with NHibernate. Since there aren't any collections defined there are no serialization issues with interfaces and proxies. The downside is there's no lazy loading either.
RPC works well and doesn't have the limitations of web services. If you use binary transfers interfaces, proxies and lazy loading aren't issues. Granted lazy loading works by passing object references to the RPC server. There's a good example RPC app posted somewhere in the forums. try searching for it.
Good Luck
|
|