开发者

Pattern for Scalable Solutions for .NET

开发者 https://www.devze.com 2023-03-30 14:39 出处:网络
Which is the best pattern to work with objec开发者_如何转开发t serialization, WCF and nhibernate + Oracle.

Which is the best pattern to work with objec开发者_如何转开发t serialization, WCF and nhibernate + Oracle.

I mean, nhibernate is a Generic ORM tool, and i would like to make my WCF Service generic too.

Imagine that, my service has only 3 Generic Methods: "Save", "Delete", "Get" and each method has its message type.

I've tried to serialize object using JSON ... and pass it to WCF, but i've had a lot of problems with JSON Serialization (cyclic references and etc).

How do you guys implement a large-scalable-solution?


If you are looking for a data access over WCF, look into WCF Data Services. Its supports many data formats including JSON

The protocol is discussed here: http://www.odata.org/

0

精彩评论

暂无评论...
验证码 换一张
取 消