Implementing a Custom Connection
A connection is an abstraction of a physical link between the data provider and the source of the data itself. In most cases, that means a network connection between the client application code and the database server code (such as a TCP/IP connection on port 1560 for SQL Server, and the like).
In the case of this sample remote data provider, the connection is an implied or logical connection rather than a physical connection. As you know, HTTP is a stateless protocol. When you request information from a web server, the connection is opened at the time of the request, not ahead of time as with database connections.
For this reason, the connection being implemented is just a storage place for the connection string, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access