如何将Entity Framework代码优先方法应用于项目 [英] How to apply Entity Framework code first approach to a project

查看:62
本文介绍了如何将Entity Framework代码优先方法应用于项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2013,并且需要在项目中首先使用实体​​框架代码.我使用NuGet Manager将EF v6.1安装到我的项目中.但是我无法从数据库创建空的代码优先模型,甚至无法从数据库创建代码优先模型,尽管还有其他两种选择(数据库优先和模型优先).

I use Visual Studio 2013 and need to use Entity Framework code first approach in a project. I used NuGet Manager to install EF v6.1 into my project. But I can't create an empty code first model or even a code first model from database although there are two other choices (DB first and Model first).

如何将Entity Framework代码优先功能添加到我的项目中?

How I can add Entity Framework code first feature to my project?

推荐答案

这是有关初次使用实体框架代码的初学者教程:用于理解实体框架的代码优先方法的绝对初学者教程在ASP.NET MVC中

Here is a beginners tutorial for using entity framework code first: An Absolute Beginner's Tutorial for understanding Entity Framework's Code First Approach in ASP.NET MVC

这篇关于如何将Entity Framework代码优先方法应用于项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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