• User Guide
  • API Documentation
  • Developer Guide
  • Support
  • User Guide
  • Storage API
  • Transactions API
Show / Hide Table of Contents
  • Getting Started
    • Core Concepts
    • Hello World
    • Reading RDF
    • Writing RDF
    • Working with Graphs
    • Typed Values and Lists
    • Working with Triple Stores
    • Building SPARQL
    • Querying with SPARQL
    • Updating with SPARQL
    • Formats Supported
    • dotNetRdf Assembly Signing
  • Going Deeper
    • Exceptions
    • Event Model
    • Equality and Comparison
    • Utility Methods
    • Extension Methods
    • Namespace Mapper
    • URI Factory
    • Node Factory
  • Storage API
    • Triple Store Integration
    • Servers API
    • Transactions API
  • Storage Providers
    • Allegro Graph
    • Blazegraph
    • Dataset Files
    • 4store
    • Fuseki
    • In-Memory
    • Sesame
    • SPARQL Query Endpoints
    • SPARQL Query and Update Endpoints
    • SPARQL Graph Store Protocol
    • Stardog
  • Advanced SPARQL
    • Result Formatting
    • SPARQL Datasets
    • Full Text Querying with SPARQL
    • Advanced SPARQL Operations
  • Ontology API
  • Inference and Reasoning
  • Dynamic API
  • Formatting API
  • Configuration API
    • Graphs
    • Triple Stores
    • Object Factories
    • Readers and Writers
    • SPARQL Endpoints (Deprecated)
    • SPARQL Clients
    • Query Processors
    • Update Processors
    • SPARQL Datasets
    • SPARQL Expression Factories
    • SPARQL Operators
    • SPARQL Optimisers
    • Full Text Query
    • Reasoners
    • Storage Providers
    • Static Options
    • Proxy Servers
  • Handlers API
  • JSON-LD API
    • Expansion
    • Compaction
    • Flattening
    • Framing
    • Processor Options
    • Error Handling
  • Linked Data Fragments API
  • RDF Canonicalization API
  • How-To Guides
    • Debug HTTP Communication
    • Debug SPARQL Queries
    • Load OWL
    • Load RDF from a File
    • Load RDF from the Web
    • Minimize Memory Usage
    • Reify Triples
  • Upgrading to dotNetRDF 3.0
    • Key Changes
    • Global Options Changes

Storage Transactions

The Transactions API provides some degree of control over Transactions when working with a store that supports these. Supporting stores implement the ITransactionalStorage and/or IAsyncTransactionalStorage interfaces.

Basic Usage

It is important to note that individual implementations are free to decide whether their transactions are global or somehow scoped (e.g. per-thread). Please consult the documentation of an implementation to determine which is the case.

These interfaces are fairly rudimentary and provide three simple methods:

Begin()

The Begin() method starts a new transaction.

Commit()

The Commit() method commits the current transaction.

Rollback()

The Rollback() method rolls back the current transaction.

  • Edit this page
In this article
  • Storage Transactions
  • Basic Usage
    • Begin()
    • Commit()
    • Rollback()
Back to top Generated by DocFX