Entity Framework learning suggestions and teaching PPT
Jin xuliang
========================================================== ========
Entityframework (EF) is a mainstream Data Access Technology on the Microsoft platform. To introduce this technology to students, I made a three-lecture Entity Framework 5.0 teaching PPT, including the corresponding source code and sample database.
For more information, see the EF trilogy by julialerman:
Programmingentity framework Second Edition
Programmingentity framework: code first
Programmingentity framework: dbcontext
Post-reading: the first is a comprehensive introduction to the EF 4.0 framework. It is very difficult to crack down the bricks in detail and depth.
Both the second and third articles describe EF 4.x, which is basically the same as EF 5.0. There is a slight change that does not affect the overall situation.
My personal feeling: dbcontext is easy to understand and recommended for reading.
The purpose of this tutorial PPT is to guide beginners to master the basic usage methods of Entity Framework 5.0, so that they can quickly grasp the key points and apply them to actual development. Require beginners to master C #Programming LanguageSQL Server is used to create tables and other basic operations.
Main content:
Lecture 1: Entity Framework Overview
Lecture 2: Data Query, addition, deletion, modification, and query operations, EF data update principles
Lecture 3: concurrent access
If you are a beginner and have little knowledge about EF, we recommend that you read my teaching ppt and read all the examples in it first, and then create a database by yourself, implement the functions of the instance I designed by myself.
Go to its official website http://www.asp.net/entity-framework, and query its detailed information in its own getstartedworkflow section (http://msdn.microsoft.com/zh-cn/data/ee712907.
EF has been widely used in other Microsoft technologies. For example, we recommend that you visit http://www.asp.net/mvcto complete two official Tutorials: Intro to ASP. NET mvc4 (http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/intro-to-aspnet-mvc-4) and MVC musicstore.
In actual development, EF is mostly used to create a data access layer. We recommend that large and medium-sized projects use the database-first mode, and small projects use the code-first mode, this PPT does not cover how to use EF to build a data access layer in a multi-tier system. It will be introduced in later system architecture design courses.
This teaching PPT is used in the "object oriented technology and method" course of Beijing University of Technology. Due to my lack of learning skills, if any errors occur in the teaching ppt and examples, please point out the corrections in the post in this article.
Access the csdn download channel and click to download the learning resources and instances of lecture entityframework.
Note: Visual Studio 2012 and EF 5.0 are used in the example, and SQL Server 2008 express R2 is used in the database.