EF三种编程方式详细图文教程(C#+EF)之Code First http://www.cnblogs.com/gaodaoheng/articles/6489759.html 如果数据库不存在会自动连接数据库创建