日期:2014-05-20 浏览次数:21021 次
class User{
public string Id{get;set;}
public ICollection<Message> SentMessasges{get;set;}
public ICollection<Message> RecievedMessages{get;set;}
}
class Message{
//发送人
public User FromUser{get;set;}
//接收者和阅读日期
public ICollection<Tuple<User, DateTime>> ToUsers{get;set;}
//发送日期
public DateTime SentDate{get;set;}
}