开发者

Can ASP.NET MVCF be used with a Postgresql database? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly b开发者_运维百科road, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

I was wondering if ASP.NET MVCF be used with a Postgresql database?


If you want to use both .NET and Postgresql then use Npgsql:

Npgsql is a .Net Data Provider for Postgresql. It allows any program developed for .Net framework to access database server. It is implemented in 100% C# code. Works with Postgresql 7.x and above.

ASP.NET MVC is a web framework for creating web applications - it doesn't care what you use for a persistence store behind the scenes. You are free to implement any store you wish (database, flat file, etc.).

One of the benefits of orthogonal architectures is that they give you the freedom to change everything from small components to entire archetectural tiers with minimal impact to the rest of the system. ASP.NET MVC was built with this philosophy.


You could also use dotconnect for PostgresSQL. As Andrew says ASP.Net MVC does not place any requirements on your database layer.

http://www.devart.com/dotconnect/postgresql/articles/tutorial_ef.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜