我可以在没有MVC的asp.net Web应用程序中实现Code第一种方法 [英] Can I implemented Code first approach in asp.net Web application without MVC

查看:80
本文介绍了我可以在没有MVC的asp.net Web应用程序中实现Code第一种方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我想在我的项目中实现代码优先方法,但我正在使用ASP.Net Web应用程序。

我早先在MVC中实现了Code第一种方法,但是我想知道是否有可能在没有MVC的情况下在asp.net web应用程序中实现代码第一种方法。

如果可以实现,请说明它是如何实现的可以。

任何提示都将不胜感激。



提前致谢。

解决方案
技巧?什么招数? 代码优先是一种与实体框架相关的方法,它完全独立于应用程序的其他层:您可以将它与WPF,Windows窗体,MVC,控制台应用程序以及Web窗体一起使用。跳过MVC教程并在此处查看其他教程: http://www.asp.net / whitepapers / aspnet-data-access-content-map#cf [ ^ ]


Hi Friends,

I want to implement code first approach in my project, but am using ASP.Net Webapplication.
I have implemented Code first approach in MVC earlier but I want to know whether it is possible to implement the code first approach in asp.net web application without MVC.
If it can be implemented, please say how it can be.
Any tips will be greatly appreciated.

Thanks in advance.

解决方案

Tricks? What tricks? "Code first" is an approach is related to Entity Framework, which is fully independent of other layers of the application: you can use it with WPF, Windows Forms, MVC, Console application and of course Web Forms too. Skip the MVC tutorials and see the other ones here: http://www.asp.net/whitepapers/aspnet-data-access-content-map#cf[^]


这篇关于我可以在没有MVC的asp.net Web应用程序中实现Code第一种方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆