STE 作为数据合约?

发布于 2024-12-27 09:09:52 字数 190 浏览 2 评论 0原文

有没有办法与客户端层(来自服务器层,即 WCF)共享自我跟踪实体,例如数据契约。
我的意思是,不要将任何带有 STE 的程序集包含到客户端,只需从服务器获取它们,例如

如果“DAL”是服务引用,我想要一些类似的内容:

DAL.SomeEntity = new DAL.SomeEntity();

Is there any way to share self tracking entities with client tier(from server tier which is WCF) like Data Contract.
I mean, do not include any assembly with STE to client, just get them from server e.g.

If "DAL" is the service reference, I want some like:

DAL.SomeEntity = new DAL.SomeEntity();

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乖乖公主 2025-01-03 09:09:52

自跟踪实体必须以代码或程序集的形式与客户共享。这是使用它们的主要要求,因为它们不仅仅是一个合约,它们还包含负责更改跟踪的逻辑,并且该逻辑不能以任何其他形式与客户端共享。

Self tracking entities must be shared with client in form of code or assembly. That is the main requirement to use them because they are not just a contract they also contain logic responsible for change tracking and this logic cannot be shared with the client in any other form.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文