EasyRepository/GenericUnitOfWork.cs
/// <summary>
///   The ensure context method checks whether the context is available and
///   throws an exception if it isn't.
/// </summary>
/// <exception cref="InvalidOperationException">
///   Thrown when a context is not available.
/// </exception>
The ensure context method checks whether the context is available and
throws an exception if it isn't.
The ensure context method checks whether the context is available and throws an exception if it isn ' t .
private void EnsureContext()
        {
            if (this.context == null)
            {
                throw new InvalidOperationException("The data context is disposed and unusable");
            }
        }
private void EnsureContext ( ) { if ( this . context == null ) { throw new InvalidOperationException ( " " ) ; } }
The ensure context method checks whether the context is available and
throws an exception if it isn't.
The ensure context method checks whether the context is available and throws an exception if it isn ' t .
Thrown when a context is not available.
Thrown when a context is not available .