Click here to Skip to main content
15,885,869 members
Articles / Desktop Programming / WPF

AutoRefresh Entity Framework Data Using SQL Server Service Broker

Rate me:
Please Sign up or sign in to vote.
4.77/5 (35 votes)
14 Sep 2012CPOL3 min read 167.5K   3.8K   95  
How to use SqlDependency to refresh Entity Framework Object Sets automatically on DB changes
// Copyright © 2012 by blueshell Software Engineering Harry von Borstel (http://www.blueshell.com)
// This work is licensed under COPL (see http://www.codeproject.com/info/cpol10.aspx)
// 
// 
using System.Collections.Specialized;

namespace EFAutoRefresh
{
	// see http://www.codeproject.com/KB/database/autorefresh_ef_ssb.aspx
	public interface INotifyRefresh : INotifyCollectionChanged
	{
		void OnRefresh();
	}

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions