DbExtensions Namespace

DbExtensions is a data-access framework with a strong focus on query composition, granularity and code aesthetics. Database is the entry point of the DbExtensions API.

Classes

  Class Description
Public class AssociationAttribute Designates a property to represent a database association, such as a foreign key relationship.
Public class ChangeConflictException An exception that is thrown when a concurrency violation is encountered while saving to the database. A concurrency violation occurs when an unexpected number of rows are affected during save. This is usually because the data in the database has been modified since it was loaded into memory.
Public class ColumnAttribute Associates a property with a column in a database table.
Public class ComplexPropertyAttribute Designates a property as a complex property that groups columns of a table that share the same base name.
Public class Database Provides simple data access using SqlSet, SqlBuilder and SqlTable<TEntity>.
Public class DatabaseConfiguration Holds configuration options that customize the behavior of Database. This class cannot be instantiated, to get an instance use the Configuration property.
Public class Extensions Provides extension methods for common ADO.NET objects.
Public class SQL Provides a set of static (Shared in Visual Basic) methods to create SqlBuilder instances.
Public class SqlBuilder Represents a mutable SQL string.
Public class SqlCommandBuilder<TEntity> Generates SQL commands for annotated classes. This class cannot be instantiated, to get an instance use the CommandBuilder or CommandBuilder properties.
Public class SqlSet Represents an immutable, connected SQL query. This class cannot be instantiated, to get an instance use the From(String) method.
Public class SqlSet<TResult> Represents an immutable, connected SQL query that maps to TResult objects. This class cannot be instantiated, to get an instance use the From<TResult>(String) method.
Public class SqlTable A non-generic version of SqlTable<TEntity> which can be used when the type of the entity is not known at build time. This class cannot be instantiated, to get an instance use the Table(Type) method.
Public class SqlTable<TEntity> A SqlSet<TResult> that provides CRUD (Create, Read, Update, Delete) operations for annotated classes. This class cannot be instantiated, to get an instance use the Table<TEntity>() method.
Public class TableAttribute Designates a class as an entity class that is associated with a database table.

Enumerations

  Enumeration Description
Public enumeration AutoSync Used to specify for during INSERT and UPDATE operations when a data member should be read back after the operation completes.
© Max Toro Q.