EF – 1.模式

image

3种数据库

code first

model first

database first

image

创建EF

http://www.cnblogs.com/tangge/p/3834578.html

DbSet

image

因为ef5.0 没有查看SQL日志的方法  context.Database.Log = Console.WriteLine;

EF6才有,就不能查看SQL

推荐工具

Express Profiler

原文地址:https://www.cnblogs.com/tangge/p/4514725.html