예제 #1
0
 public Messages Load(Dictionary <string, string> @params)
 {
     using (MessagesRepository repo = new MessagesRepository(base.DataContext))
     {
         return((Messages)repo.Load <Message>(this, repo.GetItems(@params)));
     }
 }
예제 #2
0
 public Messages Load()
 {
     using (MessagesRepository repo = new MessagesRepository(base.DataContext))
     {
         return((Messages)repo.Load <Message>(this, repo.GetItems()));
     }
 }