Lets assume I have a class model like so:
public class BlogPost
{
...
[Key]
public Guid Id {get;private set;}
public virtual ICollection Comments {get;private set;}
}
public class Comment
{
[Key]
public Guid Id {get;private set;}
public string Text{get;set;}
}
Don't read too much into my pseudocode here, but what I want to know if: Do the comment class have to have a Guid BlogPostId or BlogPost parent property?
can I model the comment class as I did above, and still have it mapped to the blogpost through the BlogPost.Comments property. e.g. by providing some other mapping attributes
I don't want aggregate members to know anything about their AR.
