Esempio n. 1
0
 public void RemoveReader()
 {
     using (LinqLibraryDataContext db = new LinqLibraryDataContext(m_ConnectionString))
     {
         db.AddUser("VeryUnusualName", "VeryUnusualName");
         int    count   = db.CountReaders();
         Reader whoIsHe = db.GetReader("VeryUnusualName", "VeryUnusualName");
         db.DeleteUser(whoIsHe.reader_ID);
         Assert.AreEqual(count - 1, db.CountReaders());
     }
 }