I found the tutorial on using Push functionality with SQL Server Notification Services. I was wondering if anyone had tried using the SQL Server Query Notification with DevForce. I think our client app could bypass quite a few DataSourceOnly queries if we could have the BOS request Query Notifications for some queries, and then use the Push feature to notify clients when they need to refresh their EntityCache.
I found
this article, which describes a method for getting any SqlCommands in a CallContext to participate in a Query Notification.
If the Fetching event is raised on the PM instance running in the BOS prior to performing the actual database query, I believe I can use the sample code to have the ADO.NET create a SqlDependency and add it to the SqlCommand used by the BOS to perform the actual query. When SQL Server performs the callback to the BOS, the BOS can perform a Push call back to the client app that performed the original query, notifying it that it should re-fetch the query using DataSourceOnly, to keep the client cache up-to-date.
Has anyone tried this type of approach?
Paul