codefirst,自联表,首次添加,子级编码设置为0导致的,因为此时表中一条数据都没有。

posted on 2017-03-12 17:38  芝麻的西瓜  阅读(513)  评论(0)    收藏  举报