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

posted @ 2015-05-19 15:41  【唐】三三  阅读(473)  评论(0编辑  收藏  举报