Top level namespace used for interacting with a database.
Classes
| Class | Description |
| AutoMap |
Map objects, table names, and sql to database tables
|
| BaseActiveRecord<T> |
Implements active record pattern for loading, saving and deleting records
|
| BaseDatabaseProvider |
Base class that database providers must implement
|
| BaseRepository<T> |
Implements Repository Pattern
|
| BaseStoredProcedureProvider |
General methods for interacting with stored procedures
|
| Compression |
LZO Compression Compatible with .NET, Silverlight and Windows Phone 7
|
| CreateClassLogic |
Logic to create a C# class from a table
|
| CreateVbClassLogic |
Logic to create VB Classes from a table
|
| DataHelper |
The main Data Access Layer that interacts with everything else
|
| Field |
Class representing a corresponding field for a column in a table
|
| ForeignKeyConstraint |
Holds information about the a Foreign Constraint
|
| Index |
Holds information about an index
|
| IndexColumn |
Column for an index
|
| MaintenanceField |
Information about maintenance fields such as CreateDate, UpdateDate etc.
|
| MaintenanceFieldLogic |
Get a list of default maintenance fields
|
| MappingException |
Occurs when a class cannot be mapped to a table
|
| NetDataAccessLayerException |
Thrown when any exception occurs in the database
|
| NullIdentity |
The provider does not implement Identity or Auto Increment Columns. Null Object design pattern.
|
| NullStoredProcedureProvider |
The database provider cannot use stored procedures. Null Object design pattern.
|
| ObjectCrud |
Create, Read, Update, Delete Methods for objects
|
| OpenCloseWrapper |
Open the database connection when instantiated and close when disposed.
|
| PagingParameters |
Specify the how the records should be retreived for a table
|
| Pluralization |
Methods to make words plural or singular
|
| PrimaryKeyHelper |
Methods for detecting primary and composite keys by the schema
|
| ReflectionHelper |
Class used for Caching Reflection
|
| SqlException |
Occurs when the SQL could not be executed for the current database provider
|
| Table |
Class that represents a corresponding table in the database and the mapping to the class
|
| TableCrud |
Create, Read, Update, Delete Methods to interact with Tables
|
| UnitOfWork |
Wrap a series of actions in a transaction. On dispose the transaction is committed.
If the database connection is closed, it will be opened and closed automatically
If the database connection is already open, it will be left open
|
Interfaces
| Interface | Description |
| IAutoMap |
Map objects, table names, and sql to database tables
|
| IDatabaseProvider |
General methods for dealing with databases
|
| IDataHelper |
Main interface for the Knight Data Access Layer
|
| IIdentity |
The provider implements Identity or Auto Increment Columns
|
| IIndexProvider |
The provider has the ability to create indexes
|
| ILimitProvider |
Generate SQL for a limit clause
|
| IObjectCrud |
Interface for the Object Crud Class
Documentation:
|
| IPagingProvider |
Provide the ability to generate SQL that will get a page of records
|
| IRecordHook |
Interface used for BeforeInsert, BeforeUpdate, BeforeDelete, AfterInsert, AfterUpdate, and AfterDelete events
|
| ITableCrud |
Interface for the Table Crud Class
|
| ITopProvider |
Providers that implement this interface can generate a top SQL clause or a first SQL Clause
|
Enumerations
| Enumeration | Description |
| ForeignKeyAction |
The action taken when a user tries to delete or update a key to which existing foreign keys point
|
| MaintenanceFieldType |
Determines how maintenance fields will be filled in
|
See Also