开发者

Sharing Models between ScriptSharp and MVC

I would like to share my scriptsharp models with MVC to use strongly typed JSON response from my controllers to the javascript code and vise versa. There is a post about it but it doesn't seems to work Old post about the same

my problem is that i decorate the members in the model class with [PreserveCase]. this is part of the postsharp mscorlib.dll which i cannot reference in my MVC project. so adding links to the model class on the MVC projec开发者_如何学编程t solution doesn't work.

What would be the best way to share models between postSharp and MVC?

Noam


check this out,

http://blogs.perpetuumsoft.com/dotnet/json-enabled-wcf-services-part-2/

I was able to build something similar and it works like a charm. whether you use WCF or MVC, the theory for sending JSON around should be the same.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜