添加域服务类时出错 [英] Error When Adding Domain Service Class

查看:74
本文介绍了添加域服务类时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。



我正在使用Silverlight Business Application我已经设计了所有页面,现在我只想要连接数据库,因为我添加了ADO.NET Entity模型当域服务类被添加到客户端项目时,它会给出一个错误,说明



DomainService''VE.Web.UserRegistrationService''派生自DomainService''VE .Web.DomainService''。只有继承层次结构中的叶子DomainService可能有EnableClientAccessAttribute。



任何人都可以帮助我......




提前感谢

Hi.

I am Using Silverlight Business Application i have designed all the pages, now i just want connect database for that i have added ADO.NET Entity model when Domain Service Class is added to the client project it is giving an error saying that

"DomainService ''VE.Web.UserRegistrationService'' derives from DomainService ''VE.Web.DomainService''. Only the leaf DomainService in the inheritance hierarchy may have the EnableClientAccessAttribute.

can anybody help me in this.....


thanks in advance

推荐答案

在域服务类中删除EnableClientAccess属性,因为它仅启用派生类
In Domain Service Class Remove the "EnableClientAccess" Attribute because it only enables for derived class


这篇关于添加域服务类时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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