public override void OnEndTransaction() { if (_instance == this) { _instance = null; } }
public override void OnBeginTransaction() { if (_instance == null) { _instance = this; } }
public ManagerIORepository GetRepository(bool enableAutoSelect = false, bool enableNamedParams = false) { ManagerIORepository repository = null; repository = new ManagerIORepository("ManagerIO"); repository.EnableAutoSelect = enableAutoSelect; repository.EnableNamedParams = enableNamedParams; return(repository); }