Is it possible to map the User class?

class User
{
  public int Id { get; private set;}
  MessageBoard MessageBoard {get; private set;}
}

class MessageBoard
{
  IList<Message> UnreadMessages { get; }
  IList<Message> ReadMessages { get; }

  void MarkMessageAsRead(Message msg)
  {
    //deleting the message from the first list and iserting into the
second
  }
}

Whether the Message is read is defined in a separate table.
Marking the message as read should result in inserting a record into
this table.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to