FakeDatabase<TContext>.Lock method

Locks the database.

public TContext Lock()

Remarks

Database tables and records should only be accessed while the database is locked. Dispose the returned context to unlock the database.

See Also