.net core model relationship hasone (学习笔记2)

1、新建实体

 

 二、Student 添加导航属性

 

 3、 申明集合
 

 

 4、 add-migration "add profile" 
 5 、update-database

posted @ 2020-01-03 13:48  面无表情的石头  阅读(193)  评论(0)    收藏  举报