OK, just wanted to know, if there is a way to generate it automatically with this filtering by id. And regarding that virtual properties - shouldn't that be generated the other way around?
Like: public int TopicId { get; set; } publica virtual Topic Topic { get; set; }