Ejemplo n.º 1
0
        public IQueryContext CreateContext()
        {
            lock (syncObject) {
                // Create a new transaction if there isn't already one open.
                if (transaction == null) {
                    transaction = session.CreateTransaction(username);
                }

                // The query container table
                QueryContainerTable queryContainer = new QueryContainerTable(transaction, null);
                // Return a query container interface
                return new EmbeddedQueryContext(queryContainer, transaction, syncObject);
            }
        }
Ejemplo n.º 2
0
 public QueryTableRow(QueryContainerTable table, RowId id)
     : base(table, id)
 {
     this.table = table;
     values = new List<SqlObject>();
 }