Are there any open-source examples of ASP.NET MVC applications that use the Entity Framework? I have found Nerd Dinner to be helpful but it is using Linq to SQL.
有开源ASP的例子吗?使用实体框架的netmvc应用程序?我发现书呆子晚餐很有帮助,但它使用的是Linq to SQL。
I am trying to use the Entity Framework in a strongly-typed ASP.NET MVC project and am finding that anything beyond the simple tutorial becomes rather difficult to implement. I am thinking that if I could see some slightly more complex example code, that would help me a great deal. I am particularly interested in examples that are "real-world" and have to deal with multiple data tables when performing data entry/updates. Is anyone familiar with a good source for this information?
我正在尝试在强类型的ASP中使用实体框架。NET MVC项目,我发现除了简单的教程之外的任何东西都很难实现。我在想,如果我能看到一些稍微复杂一点的示例代码,那会对我有很大帮助。我对“真实世界”的示例特别感兴趣,并且在执行数据输入/更新时必须处理多个数据表。有人知道这个信息的好来源吗?
So far in my experience, I have not used much ASP.NET MVC but have been using the Entity Framework for about 8 months.
就我的经验而言,我还没有使用多少ASP。但是已经使用实体框架8个月了。
8 个解决方案
#1
2
The EF team, in conjunction with P&P, are currently in the process of developing an EF (version 4) data access reference implementation that uses ASP.NET MVC as the front-end.
EF团队与P&P一起,目前正在开发一个使用ASP的EF (version 4)数据访问参考实现。NET MVC作为前端。
The project will be made available iteratively on CodePlex here:
本项目将在CodePlex上进行迭代:
http://dataguidance.codeplex.com/
http://dataguidance.codeplex.com/
We haven't yet made our first source drop but it will be happening within the next couple of weeks.
我们还没有制造出第一个源点,但它将在未来几周内发生。
UPDATE: We have now dropped code - please be advised that it should be considered alpha quality and is subject to change.
更新:我们现在已经删除了代码——请注意,它应该被认为是alpha质量,并且可能会改变。
#2
1
Here is what I found so far
这是我到目前为止发现的
ASP.NET MVC Example Application over Northwind with the Entity Framework
ASP。NET MVC示例应用程序,通过Northwind与实体框架
Same article but possibly newer?
同样的文章但可能更新?
#3
1
You might check out MvcCms at http://mvccms.codeplex.com. It isn't officially released until July but there is source code available.
您可以登录http://mvccms.codeplex.com查看MvcCms。它直到7月份才正式发布,但是有源代码可用。
#4
1
This example: http://mvcmusicstore.codeplex.com/releases/view/44445#DownloadId=121650
这个例子:http://mvcmusicstore.codeplex.com/releases/view/44445 DownloadId = 121650
This book: http://apress.com/book/view/9781430228868
这本书:http://apress.com/book/view/9781430228868
This walkthrough/blog is fun too: http://blog.wekeroad.com/mvc-storefront
这个步行/博客也很有趣:http://blog.we煤油/mvc-storefront
#5
1
There is now a 10-tutorial series using Code First; here is a link to the first in the series: http://www.asp.net/entity-framework/tutorials/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application
现在有一个10教程系列,首先使用代码;下面是本系列的第一个链接:http://www.asp.net/entityframework/tutorials/creating-an - entityframeworkdata -model-for an-asp-net-mvc应用程序
#6
0
There's also the MVC Music Store now: http://mvcmusicstore.codeplex.com/ that shows MVC2 and EF4.
现在还有MVC音乐商店:http://mvcmusicstore.codeplex.com/,显示MVC2和EF4。
#7
0
http://asp.net/mvc has recently been updated with the music store, and the examples now use EF.
http://asp.net/mvc最近已经被音乐商店更新,现在示例使用EF。
#8
0
Here is more complete tutorial with edit/delete http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/AuthorContactManager06102009052732AM/AuthorContactManager.aspx
这里有更完整的教程,包含编辑/删除http://www.c-sharpcorner .com/uploadfile/dhananjaycoder/authorcontactmanager06102009052732am/authorcontactmanages.aspx
#1
2
The EF team, in conjunction with P&P, are currently in the process of developing an EF (version 4) data access reference implementation that uses ASP.NET MVC as the front-end.
EF团队与P&P一起,目前正在开发一个使用ASP的EF (version 4)数据访问参考实现。NET MVC作为前端。
The project will be made available iteratively on CodePlex here:
本项目将在CodePlex上进行迭代:
http://dataguidance.codeplex.com/
http://dataguidance.codeplex.com/
We haven't yet made our first source drop but it will be happening within the next couple of weeks.
我们还没有制造出第一个源点,但它将在未来几周内发生。
UPDATE: We have now dropped code - please be advised that it should be considered alpha quality and is subject to change.
更新:我们现在已经删除了代码——请注意,它应该被认为是alpha质量,并且可能会改变。
#2
1
Here is what I found so far
这是我到目前为止发现的
ASP.NET MVC Example Application over Northwind with the Entity Framework
ASP。NET MVC示例应用程序,通过Northwind与实体框架
Same article but possibly newer?
同样的文章但可能更新?
#3
1
You might check out MvcCms at http://mvccms.codeplex.com. It isn't officially released until July but there is source code available.
您可以登录http://mvccms.codeplex.com查看MvcCms。它直到7月份才正式发布,但是有源代码可用。
#4
1
This example: http://mvcmusicstore.codeplex.com/releases/view/44445#DownloadId=121650
这个例子:http://mvcmusicstore.codeplex.com/releases/view/44445 DownloadId = 121650
This book: http://apress.com/book/view/9781430228868
这本书:http://apress.com/book/view/9781430228868
This walkthrough/blog is fun too: http://blog.wekeroad.com/mvc-storefront
这个步行/博客也很有趣:http://blog.we煤油/mvc-storefront
#5
1
There is now a 10-tutorial series using Code First; here is a link to the first in the series: http://www.asp.net/entity-framework/tutorials/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application
现在有一个10教程系列,首先使用代码;下面是本系列的第一个链接:http://www.asp.net/entityframework/tutorials/creating-an - entityframeworkdata -model-for an-asp-net-mvc应用程序
#6
0
There's also the MVC Music Store now: http://mvcmusicstore.codeplex.com/ that shows MVC2 and EF4.
现在还有MVC音乐商店:http://mvcmusicstore.codeplex.com/,显示MVC2和EF4。
#7
0
http://asp.net/mvc has recently been updated with the music store, and the examples now use EF.
http://asp.net/mvc最近已经被音乐商店更新,现在示例使用EF。
#8
0
Here is more complete tutorial with edit/delete http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/AuthorContactManager06102009052732AM/AuthorContactManager.aspx
这里有更完整的教程,包含编辑/删除http://www.c-sharpcorner .com/uploadfile/dhananjaycoder/authorcontactmanager06102009052732am/authorcontactmanages.aspx