I've created diagram from my database. I've just connected to my db via visual studio and created .edmx model. Than I've auto generated context so I have classes with my data models.
Auto generation works ok. But can I (and if I can how to do that) create files manualy and than map them on tables so when I`ll use linq to query my db my app will automaticly created objects based on rows ?
您首先要查找的code first
称为code first
,您可以在此处进行介绍 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.