Method SoftDelete_MarkForDeletion()
Soft-delete: move the given objects + all descendants under a fresh trash
container (scheme -10). Native SQLite (no server function, Core untouched):
the sequence is first raised above every stored id (as the key generator does, see
SqliteKeyGenerator.IdSpaceTopSql), then the trash id is allocated from the AUTOINCREMENT _global_identity and read via
last_insert_rowid() — per-connection, so it stays stable across the statements
regardless of concurrent writers. The batch opens no transaction of its own: the provider
runs it inside one (ExecuteAtomicAsync, joining the caller's), whose owner rolls back a
failure between the statements. A SAVEPOINT in the text itself became a transaction
nobody owned when a statement after it failed - pooled with the database write lock.
The final SELECT is last (Core's QueryAsync reads only the first result set).
Params: $1=objectIds (array -> JSON), $2=userId, $3=trashParentId (nullable).
Returns: trash_id, marked_count.
public string SoftDelete_MarkForDeletion()