[英]EF 4 to EF 5 Database Authentication
I have an application developed using EF4, .Net 4.5, Silverlight 5, Ria services. 我有一个使用EF4,.Net 4.5,Silverlight 5,Ria服务开发的应用程序。
I want to upgrade from EF4 to EF5, a lot of differences specially on the DBContext. 我想从EF4升级到EF5,这在DBContext上有很多差异。
I was using a custom database authentication in EF4 by implementing the IAuthentication interface in my AuthenticationDomainService class and use the extended WebContextBase class on the client. 通过在AuthenticationDomainService类中实现IAuthentication接口,并在客户端上使用扩展的WebContextBase类,我在EF4中使用了自定义数据库身份验证。
I don't know what are the equivalent to these steps on EF5 as I don't have a DomainService class nor AuthenticationDomainService class. 我不知道EF5上的这些步骤等效于什么,因为我没有DomainService类或AuthenticationDomainService类。
Can anyone give me directions to resolve the issue!! 任何人都可以给我指示以解决问题!!
I was not getting DomainService class due to the absence of WCFRIA.EntityFramework.5.0.0.1 package. 由于缺少WCFRIA.EntityFramework.5.0.0.1包,因此我没有得到DomainService类。
I have install it and I can now have the authentication created. 我已经安装了它,现在可以创建身份验证了。
Hope it can help anyone else. 希望它可以帮助其他人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.