ADO.NET Data Provider for NNTP

GotDotNet is a big repository for interesting projects (obviously, if you're lucky to check it during the days where it works... ). Today, thanks to Jason Bentley (and Ryan Farley), I've discovered a project that could be really interesting for me: an ADO.NET Data Provider for NNTP.

Why is so cool? If you want to search on newsgroups, with this ADO.NET provider you could write something like this:

nntpConnection conn = new nntpConnection("news.microsoft.com");
try
{
  conn.Open();
  nntpCommand cmd = new nntpCommand("select top
    10 * from microsoft.public.dotnet.languages.csharp"
, conn);
  nntpDataAdapter da = new nntpDataAdapter(cmd);
  DataSet ds = new DataSet();
  da.Fill(ds);
  dataGrid1.DataSource = ds.Tables[0];
  cmd.Dispose();
}
finally {
 
conn.Dispose();
}

And you're ready to go... really nice and easy to query the newsgroup world!

Print | posted on Tuesday, March 01, 2005 9:20 PM

Comments on this post

# re: ADO.NET Data Provider for NNTP

Requesting Gravatar...
Nice but how do I get the wrapper class or how to get it in my System.data so I could program a VB.NET client ?
Left by Kikker46 on Mar 01, 2005 10:15 PM

# re: ADO.NET Data Provider for NNTP

Requesting Gravatar...
You can download the classes on the link I've provided on the post, on GotDotNet.
Left by Stefano Demiliani on Mar 02, 2005 8:34 AM

Your comment:

 (will show your gravatar)
 
Please add 6 and 7 and type the answer here: