Skip to content

.net core使用ef 6

L edited this page Aug 16, 2018 · 3 revisions

要求

需要是core(with full .net framework)的项目,因为core本身不支持ef 6

新建项目

注意新建的项目是.net framework+.net core的
1
server
新建的项目情况如下:
2
3
4

添加ef引用,连接数据库

参考资料

http://jakeydocs.readthedocs.io/en/latest/data/entity-framework-6.html

Clone this wiki locally