/// <summary>
 /// Disposes of managed and unmanaged resources used by the object.
 /// </summary>
 public void Dispose()
 {
     if (context != null)
     {
         context.Dispose();
         context = null;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DataRepository"/> class.
 /// </summary>
 public DataRepository()
 {
     context = new NorthwindModel();
     set     = context.Set <TEntity>();
 }