开发者

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

开发者 https://www.devze.com 2022-12-15 01:18 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly b开发者_运维百科road, or rhetorical andcannot be reasonably answered in its current form.
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

精彩评论

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