dmitri (1) [Avatar] Offline
#1
Hello,

I've created extra property in my Class Story which should return the count of the comments for particular Story object.

public int CommentCount
{
get
{
return this.StoryComments.Count(c => c.IsActive == true);
}
}

I use a linqdatasource to retrieve data, but all I get is 0 for comment count.

Is there something I’m missing here?

Thanks in advance Dmitri