Ejemplo n.º 1
0
 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;
Ejemplo n.º 2
0
        public object Execute(DocumentTransaction tx, DmlCommand command)
        {
            AssertInitialized();

            return(Configuration.GetDmlCommandExecutor(tx, command)());
        }
Ejemplo n.º 3
0
        public T Execute <T>(DocumentTransaction tx, Command <T> command)
        {
            AssertInitialized();

            return((T)Configuration.GetDmlCommandExecutor(tx, command)());
        }
Ejemplo n.º 4
0
        public IDocumentSession OpenSession(DocumentTransaction tx = null)
        {
            AssertInitialized();

            return(new DocumentSession(this, Migrator, tx));
        }