示例#1
0
 public override IList <PrivateMessage> FindBySender(User User)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         PrivateMessageDataStore pmDS = new PrivateMessageDataStore(transaction);
         return(pmDS.FindBySender(User));
     }
 }
示例#2
0
 public override PrivateMessage FindById(string PrivateMessageId)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         PrivateMessageDataStore pmDS = new PrivateMessageDataStore(transaction);
         return(pmDS.FindById(PrivateMessageId));
     }
 }
示例#3
0
 public override void Insert(PrivateMessage PrivateMessage)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         PrivateMessageDataStore pmDS = new PrivateMessageDataStore(transaction);
         pmDS.Insert(PrivateMessage);
         transaction.Commit();
     }
 }