添加域服务类时出错 [英] Error When Adding Domain Service Class
问题描述
嗨。
我正在使用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屋!