我在哪里可以找到好的样本ASP。NET数据库驱动的Web应用程序?

时间:2021-07-20 15:10:28

I would like to learn the best practices to employ when creating a database driven web-application. I prefer to learn from examples. What is a good sample application that I can download and run to learn this:

在创建数据库驱动的web应用程序时,我希望学习使用最佳实践。我喜欢从例子中学习。我可以下载并运行一个好的示例应用程序来学习以下内容:

I am looking for:

我在寻找:

  1. Should be written in C# (preferably)
  2. 应该用c#写(最好)
  3. Should contain a complex database design (parent child relations, etc.)
  4. 应该包含复杂的数据库设计(父子关系等)。
  5. Should implement the best practices for an ASP.net website as well as for database design.
  6. 应该为ASP.net网站和数据库设计实现最佳实践。
  7. Preferably uses Oracle.
  8. 最好是使用Oracle。

6 个解决方案

#1


10  

If you don't want to worry about writing your DAL (Data Access Layer), then I suggest looking at Nhibernate. There are samples with it and ASP.NET here, here, and here. Here's a sample with just Oracle and ASP.NET.

如果您不想担心编写DAL(数据访问层),那么我建议您看看Nhibernate。有带it和ASP的样品。这里,这里,这里。这是一个只有Oracle和ASP.NET的示例。

If you are looking for just sample ASP.NET Applications without an Object Relational Mapper like NHibernate, try this.

如果你正在寻找样本ASP。没有对象关系映射器(如NHibernate)的NET应用程序,请尝试一下。

Also, on a higher level, you're looking for an N-Tier ASP.NET application design. There are good tutorials on that here, here, and here.

此外,在更高的层次上,您正在寻找n层ASP。网络应用程序设计。这里,这里和这里都有很好的教程。

#2


3  

There are lots of examples in ASP.NET Starter Kits. I really like the BlogEngine.NET application. For higher-end basics (hmmm..."higher-end basics"...oxymoron?) the BeerHouse E-Commerce application is great.

在ASP中有很多例子。净的发射装置。我真的很喜欢博客引擎。网络应用程序。高端基础(嗯…“高端基础”……矛盾修饰法?)BeerHouse电子商务应用非常棒。

#3


1  

For 1 through 3, I would recommend downloading some of the ASP.NET starter kits. I'm not sure if they work with Oracle though.

对于1到3,我建议下载一些ASP。净的发射装置。我不确定他们是否与Oracle合作。

Some of the bigger frameworks are also great starts like DotNetNuke. They make great use of best practices.

一些更大的框架也是很好的开始,比如DotNetNuke。他们充分利用了最佳实践。

http://www.asp.net/community/projects/

http://www.asp.net/community/projects/

#4


1  

For Oracle, look for samples using the System.Data.OracleClient.

对于Oracle,请使用System.Data.OracleClient查找示例。

#5


1  

Writing this from my iPhone so sorry for the brvity.

用我的iPhone写这个,很抱歉。

Check out rob conrey's MVC storefront videos & source.

查看rob conrey的MVC店面视频和源代码。

#6


0  

In my opinion best practice would dictate the following:

我认为最佳做法将规定下列事项:

  1. Use an ORM for your data access layer. This should ideally be in a a separate project so it can be changed if need be.
  2. 对数据访问层使用ORM。理想情况下,这应该是在一个单独的项目中,以便在需要时可以更改。
  3. Should use MVC. If you use WebForms then you will surely find that your business logic and the display logic gets mixed together.
  4. 应该使用MVC。如果您使用WebForms,那么您一定会发现您的业务逻辑和显示逻辑是混合在一起的。
  5. Learn database design separate and apart from learning to write code.
  6. 除了学习编写代码之外,还要学习数据库设计。
  7. Keep reviewing object oriented design fundamentals.
  8. 继续回顾面向对象的设计基础。
  9. Take time to learn design patterns. Not to become a slave to "The Gang of Four" but so that you can take advantage of proven patterns to solve common problems.
  10. 花时间学习设计模式。不是成为“*”的奴隶,而是利用已被证明的模式来解决常见问题。

#1


10  

If you don't want to worry about writing your DAL (Data Access Layer), then I suggest looking at Nhibernate. There are samples with it and ASP.NET here, here, and here. Here's a sample with just Oracle and ASP.NET.

如果您不想担心编写DAL(数据访问层),那么我建议您看看Nhibernate。有带it和ASP的样品。这里,这里,这里。这是一个只有Oracle和ASP.NET的示例。

If you are looking for just sample ASP.NET Applications without an Object Relational Mapper like NHibernate, try this.

如果你正在寻找样本ASP。没有对象关系映射器(如NHibernate)的NET应用程序,请尝试一下。

Also, on a higher level, you're looking for an N-Tier ASP.NET application design. There are good tutorials on that here, here, and here.

此外,在更高的层次上,您正在寻找n层ASP。网络应用程序设计。这里,这里和这里都有很好的教程。

#2


3  

There are lots of examples in ASP.NET Starter Kits. I really like the BlogEngine.NET application. For higher-end basics (hmmm..."higher-end basics"...oxymoron?) the BeerHouse E-Commerce application is great.

在ASP中有很多例子。净的发射装置。我真的很喜欢博客引擎。网络应用程序。高端基础(嗯…“高端基础”……矛盾修饰法?)BeerHouse电子商务应用非常棒。

#3


1  

For 1 through 3, I would recommend downloading some of the ASP.NET starter kits. I'm not sure if they work with Oracle though.

对于1到3,我建议下载一些ASP。净的发射装置。我不确定他们是否与Oracle合作。

Some of the bigger frameworks are also great starts like DotNetNuke. They make great use of best practices.

一些更大的框架也是很好的开始,比如DotNetNuke。他们充分利用了最佳实践。

http://www.asp.net/community/projects/

http://www.asp.net/community/projects/

#4


1  

For Oracle, look for samples using the System.Data.OracleClient.

对于Oracle,请使用System.Data.OracleClient查找示例。

#5


1  

Writing this from my iPhone so sorry for the brvity.

用我的iPhone写这个,很抱歉。

Check out rob conrey's MVC storefront videos & source.

查看rob conrey的MVC店面视频和源代码。

#6


0  

In my opinion best practice would dictate the following:

我认为最佳做法将规定下列事项:

  1. Use an ORM for your data access layer. This should ideally be in a a separate project so it can be changed if need be.
  2. 对数据访问层使用ORM。理想情况下,这应该是在一个单独的项目中,以便在需要时可以更改。
  3. Should use MVC. If you use WebForms then you will surely find that your business logic and the display logic gets mixed together.
  4. 应该使用MVC。如果您使用WebForms,那么您一定会发现您的业务逻辑和显示逻辑是混合在一起的。
  5. Learn database design separate and apart from learning to write code.
  6. 除了学习编写代码之外,还要学习数据库设计。
  7. Keep reviewing object oriented design fundamentals.
  8. 继续回顾面向对象的设计基础。
  9. Take time to learn design patterns. Not to become a slave to "The Gang of Four" but so that you can take advantage of proven patterns to solve common problems.
  10. 花时间学习设计模式。不是成为“*”的奴隶,而是利用已被证明的模式来解决常见问题。