public static IEnumerable <QueryResult <TProjection> > Query <TProjection>( this DocumentTransaction tx, DocumentTable table, byte[] since, string select = null) => tx.Query <TProjection>(table, null, false, @select, @where: $"{DocumentTable.TimestampColumn.Name} > @Since and {DocumentTable.TimestampColumn.Name} < min_active_rowversion()", @orderby: $"{DocumentTable.TimestampColumn.Name} ASC", includeDeleted: true, parameters: new { Since = since } ).rows;
public object Execute(DocumentTransaction tx, DmlCommand command) { AssertInitialized(); return(Configuration.GetDmlCommandExecutor(tx, command)()); }
public T Execute <T>(DocumentTransaction tx, Command <T> command) { AssertInitialized(); return((T)Configuration.GetDmlCommandExecutor(tx, command)()); }
public IDocumentSession OpenSession(DocumentTransaction tx = null) { AssertInitialized(); return(new DocumentSession(this, Migrator, tx)); }