Use SQL queries and native .NET data objects for Internet development. The IP*Works! ADO.NET Data Provider implements a standard Microsoft .NET Data Provider enabling developers to consume Internet resources in the same way that they would commonly access a database. The IP*Works! Data Provider eliminates the need to learn complex Internet protocol logic, instead providing an interface that every developer is familiar with.
Features Include
Currently the IP*Works! ADO.NET Data Provider supports a subset of protocols available in the base IP*Works! framework, including RSS, POP, IMAP, SMTP, & NNTP. Additional protocol support will be included with the final release.
Why a .NET Data Provider?
There are a number of reasons we chose the .NET Data Provider interface including the features listed above. For more information about the .NET Data Provider model as well as the additional benefits of using the IP*Works! ADO.NET Data providers read : The Internet As a Database: IP*Works! ADO.NET Providers
Simple Example
This example shows how to connect and download all of the messages from an IMAP folder (INBOX) and populates a DataTable with the results.
IPWorksConnection ipworksConnection1 = new IPWorksConnection("protocol=imap; user=myuser; password=mypassword ..."); IPWorksCommand ipworksCommand1 = new IPWorksCommand("SELECT * from INBOX", ipworksConnection1); IPWorksDataAdapter ipworksDataAdapter1 = new IPWorksDataAdapter(); ipworksDataAdapter1.SelectCommand = ipworksCommand1; //"SELECT * from INBOX" System.Data.DataTable dataTable1 = new System.Data.DataTable(); ipworksDataAdapter1.Fill(dataTable1);
To display the list of messages returned from the server we can use native .NET data objects for displaying the DataTable. For example we can use either a WinForms or a WebForms DataGrid to easily show our results
DataGrid dataGrid1 = new DataGrid(); dataGrid1.DataSource = dataTable1; // In ASP.NET add dataGrid1.DataBind()
That's all there is to it. The same code will work with other protocols as well with only small changes to the connection string.
More Information
For more information about the IP*Works! ADO.NET Data Provider please download the beta. We are very interested in feedback regarding this release, if you you would like to see additional features or have general comments please send us your feedback.
To see the power and functionality of the IP*Works! ADO.NET Data Provider in action, visit our knowledge base and read - Building a Robust Web-Based Email Client Using IP*Works! ADO.NET Data Provider.
可惜只有Trial版本下载!