使用Java应用程序客户端在WCF客户端中使用STE实体 [英] Using STE entities in WCF Client using Java Application Client

查看:108
本文介绍了使用Java应用程序客户端在WCF客户端中使用STE实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用实体框架(自身跟踪实体)开发了我的DAL。我写了一个WCF服务,它暴露了这些STE的一些CRUDE操作。

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.

我想在java应用程序(客户端)中使用我的WCF服务。

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

STE在我的Java客户端应用程序中是否正常工作?我的意思是,如果java客户端应用程序在我的自我跟踪实体中进行了一些更改,那么这些更改将被跟踪?

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?

推荐答案

只有在服务器和客户端应用程序之间共享程序集的逻辑,STE才能工作。一旦你的客户端应用程序是Java,它就不能用STE逻辑使用你的程序集(使用高级的interop它可能不是这不是解决你的服务的坏设计),所以Java开发人员必须再次编写整个逻辑,或者你必须使用普通的POCO / DTO没有这种自动魔法。暴露数据集或STE的WCF服务不可互操作,因为它要求在客户端上实现某些逻辑。

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。 我们向您发出警告关于STEs!

Btw. we warned you about disadvantages of STEs!

这篇关于使用Java应用程序客户端在WCF客户端中使用STE实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆