域上下文何时创建?
各位 我对域上下文感到困惑,它们是域服务的对应部分还是客户端的镜像?
它们是什么时候创建的? 意味着它们是在我们创建域服务类的同时创建的吗?或者当我们构建解决方案时,我们可以从客户端添加域上下文?
当我们已经拥有允许客户端访问的域服务类时,为什么还需要域上下文?
Dear all
I am confused about domain context that wether they are counterpart of domain services or the mirror image on the client side?
when are they created ?
means are they created at the same time when we create domain services classes? or when we build the solution then we can add domain context from client side?
why there is the need for domain context when we already have domain services classes through which client access is permitted?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己在研究几个教程时找到了答案,
当我们在服务器端为特定实体创建域服务时,一旦我们选中同时启用客户端访问的选项,客户端代理就会在客户端开发。
在客户端生成类,我们可以通过这些类或我们所说的代理来访问这些实体。
域上下文提供了对服务器端功能的轻松访问。
它包含进行服务调用的 wcf 代理
i found the answer myself while studying several tutorials
what happens when we create a domain service for a particular entity on the server side the as soon as we check the option of enable client access simultaneously client proxies are developed on the client side offcourse.
there is the generation of the classes on the client side and we can access those entities through those classes or what we call proxies.
domain context provides easy access to the functionality on the server side.
it contains wcf proxy that makes service calls