Using STE entities in WCF Client using Java Application Client

扶醉桌前 提交于 2019-12-25 08:58:13

问题


I have developed my DAL using Entity Framework (Self Tracking Entities). I have written a WCF Service which exposes some CRUDE operations on those STEs.

I want to use my WCF service in a java application (client).

Would the STEs work properly in my Java Client Application? I mean if the java client application makes some changes in my self tracking entity, will those changes be tracked?


回答1:


No. STEs work only if you share assembly with their logic between server and client application. Once your client application is Java it cannot use your assembly with STE logic (with advanced interop it probably can but that is not solution for bad design of your service) so either Java developers must code the whole logic again or you must use plain POCOs / DTOs without this auto magic. WCF service exposing data sets or STEs is not interoperable because it demands certain logic implemented on clients.

Btw. we warned you about disadvantages of STEs!



来源:https://stackoverflow.com/questions/6818194/using-ste-entities-in-wcf-client-using-java-application-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!