0
我创建了一个名为Posts的表。实体模型关系?
POSTS |
_____________|
post_id |
parent_id | //reference to post_id
post_type_id | //I have two type
user_id | //reference to user table
我从这个表创建一个实体模型。我期待这样的:Model.POSTS
但它是这样显示的Model.POSTS1
和Model.POSTS2
这意味着有两个集合。
为什么会发生这种情况?这是关于post_type? POSTS1 = type1
和POSTS2=type2
?
你看过映射吗? Model.POSTS2映射到什么? – CodingGorilla
它们也映射到帖子。 –