예제 #1
0
 public Message Load(int id)
 {
     using (MessagesRepository repo = new MessagesRepository(DataContext))
     {
         return(repo.LoadOne <Message>(this, repo.GetItem(id)));
     }
 }