简体   繁体   English

EF 4至EF 5数据库身份验证

[英]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.

相关问题 EF属性导航 - EF Property navigation SQL Server CE 4和EF的MS构建错误 - MS Build Error with SQL Server CE 4 and EF 带有RIA Services和Silverlight的EF Code Fist继承 - EF Code Fist inheritance with RIA Services and Silverlight 如何拥有通用存储库以使用EF异步加载数据? - How can I have a generic repository to load the data asynchronously with EF? Silverlight 5 LOB应用程序中与WCF RIA服务和EF 5.0一起使用的最新.NET Framework是什么? - What is the latest .NET Framework that works with WCF RIA Services and EF 5.0 in a Silverlight 5 LOB application? EF5 Code First和RIA Services Silverlight“对象引用未设置为对象的实例”错误构建客户端 - EF5 Code First and RIA Services Silverlight “Object reference not set to an instance of an object” error building client 将权限/身份验证复制到子线程......? - Copy permissions / authentication to child threads…? 没有RIA服务的Silverlight身份验证? - Silverlight Authentication Without RIA Services? 在身份验证服务中实现自定义返回值 - Implementing custom return value in Authentication Service 在Silverlight业务应用程序中使用身份验证服务 - Using Authentication Service with Silverlight Business Application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM