使用与窗体身份验证的Oracle数据库在应用MVC3 [英] Use an Oracle database with forms authentication in an MVC3 application
本文介绍了使用与窗体身份验证的Oracle数据库在应用MVC3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写了一个简单的应用MVC3,随后就如何设置身份验证的用户的教程。本教程使用一个SQL Server防爆preSS数据库。
是否有可能使用的不是SQL服务器的Oracle数据库?
难道仅仅是改变了连接字符串在web.config在Oracle数据库点的情况下... ...或者是更深入一点比?
<&是connectionStrings GT;
<添加名称=ApplicationServices
的connectionString =数据源= \\ SQLEX $ P $干燥综合征;集成安全性= SSPI; AttachDBFilename = | DataDirectory目录| ASPNETDB.MDF;用户实例=真
的providerName =System.Data.SqlClient的/>
< /&是connectionStrings GT;
解决方案
这比在web.config改变连接字符串更加深入。
- 您需要为Oracle供应商
- SQLSERVER支持Integrirty验证这是很难与Oracle 来实现
I've written a simple MVC3 application and followed a tutorial on how to set up authenticated users. The tutorial used a SQL server Express database.
Is it possible to use an Oracle database instead of SQL server?
Is it just a case of changing the connection string in the web.config to point at the Oracle database... or is it a bit more in-depth than that?
<connectionStrings>
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
</connectionStrings>
解决方案
It's much more in-depth than changing the connection string in the web.config.
- you need a provider for Oracle
- sqlServer supports Integrirty Authentication which is harder to accomplish with Oracle
这篇关于使用与窗体身份验证的Oracle数据库在应用MVC3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文