private GeoReferenceServer GetDatabase(Boolean refresh = false) { if (_database.IsNull() || refresh) { if (_database.IsNotNull()) { _database.RollbackTransaction(); _database.Dispose(); } _database = new GeoReferenceServer(); _database.BeginTransaction(); } return(_database); }
public void RollbackTransactionNoTransactionError() { using (DataServer database = new GeoReferenceServer()) { database.RollbackTransaction(); } }