/// <inheritdoc /> public void Complete(IConnectionFactory factory, bool success) { if (Factory != factory) { return; } _wordsPartsHelper?.Dispose(); _wordsPartsHelper = null; Factory = null; }
/// <inheritdoc /> public void Prepare(IPersister persister, IConnectionFactory factory) { // no readonly event posible here. if (factory.IsReadOnly) { return; } Factory = factory; // sanity check. Contract.Assert(_wordsPartsHelper == null); _wordsPartsHelper = new WordsPartsHelper(factory, TableName); }