/// <exception cref="Db4objects.Db4o.Ext.DatabaseReadOnlyException"></exception> /// <exception cref="Db4objects.Db4o.Ext.DatabaseClosedException"></exception> public void Delete(Transaction trans, object obj) { if (null == obj) { throw new ArgumentNullException(); } lock (Lock()) { trans = CheckTransaction(trans); CheckReadOnly(); Delete1(trans, obj, true); UnregisterFromTransparentPersistence(trans, obj); trans.ProcessDeletes(); } }
private object AsTopLevelStore(IFunction4 block, Transaction trans) { trans = CheckTransaction(trans); object result = AsTopLevelCall(block, trans); if (_stackDepth == 0) { trans.ProcessDeletes(); } return result; }