使用 .NET MVC 查询 Oracle
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/783408/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Querying to Oracle using .NET MVC
提问by George
I have been following some MVC tutorials that connect to a sql mdf database and was wondering if there were any tutuorials that existed out there that show you how to create a data model using an Oracle database. The company I work for uses Oracle on the back end so getting MVC to tie into Oracle as the Model would help me greatly. Thanks.
我一直在关注一些连接到 sql mdf 数据库的 MVC 教程,并想知道是否有任何教程可以向您展示如何使用 Oracle 数据库创建数据模型。我工作的公司在后端使用 Oracle,因此将 MVC 作为模型与 Oracle 联系起来对我有很大帮助。谢谢。
By the way, I want to try and create the database connection without using a 3rd party tool such as DevArt's dotConnect or OraDeveloper's tools but if that is the only way, I would like to hear how to make it work with this tool.
顺便说一句,我想尝试在不使用 DevArt 的 dotConnect 或 OraDeveloper 的工具等第三方工具的情况下创建数据库连接,但如果这是唯一的方法,我想听听如何使用此工具使其工作。
Edit: .NET Specific MVC Thanks @Eric
编辑:.NET 特定 MVC 谢谢@Eric
回答by Eric Petroelje
Assuming you are talking about .NET MVC here, MVC itself really has nothing "built in" for data access. You would just use whatever .NET data access method you feel is appropriate for your app (ADO.NET, NHibernate, LINQ, etc..).
假设您在这里谈论的是 .NET MVC,MVC 本身确实没有“内置”用于数据访问。您可以使用任何您认为适合您的应用程序的 .NET 数据访问方法(ADO.NET、NHibernate、LINQ 等)。
So, you might want to check out these questions to start with:
所以,你可能想先看看这些问题:
Which is the “best” data access framework/approach for C# and .Net?
What would be the most convenient way to connect Visual Studio 2005 (C#) to Oracle8?
将 Visual Studio 2005 (C#) 连接到 Oracle8 的最方便的方法是什么?
I'm sure you can find a lot more if you search this site for ".net and oracle" or something similar.
如果您在此站点上搜索“.net 和 oracle”或类似内容,我相信您可以找到更多内容。