nosql_repository library

Repository pattern for NoSQL databases

The purpose of this package is to define a structure of an interface to access a NoSQL database. The main abstraction it defines is the Repository class. The Repository class represents a set of operations that are used to access a collection in a database, which include the typical CRUD methods (Create, Read, Update and Delete).

The Repository is abstract. The goal is to create concrete implementations of it, but reference the abstract class throughout the code of the application, therefore abstracting away as much as possible the concrete database engine.

Classes

And
Represents an expression that is true when left and right are true.
CreatePolicy
Defines authorization policy for search operations.
DbException
Represents an exception ocurred at the database engine when trying to perform an operation.
DbPrincipal
Represents a user that performs operations on a database.
DeletePolicy
Defines authorization policy for delete operations.
EntityPermissionPolicy
Defines a policy to determine if a user has the authorization to perform an operation on an entity.
Equal
Represents an expression that is true when the left operand is equal to the right operand.
Expression
Defines a business filtering expression
FieldPath
Defines a path to search for a value of a field within a document in a collection.
GreaterOrEqualThan
Defines an expression that is equal when the left is greater or equal to the right.
GreaterThan
Defines an expression that is equal when the left is greater than the right.
In
Defines an expression that is equal when the left is one of the values contained in the right.
Input
Defines an operand that is input from the user.
LessOrEqualThan
Defines an expression that is equal when the left is lesser or equal to the right.
LessThan
Defines an expression that is equal when the left is less than the right.
Like
Defines an expression that is equal when the left fits the pattern defined by the right.
ListInput
Defines an operand that is a list of possible values.
Not
Defines an expression that is the boolean opposite of the expression.
NotEqual
Defines an expression that is true when the left is different of the right.
NotFound
Operand
Defines an operand that can be used in an Expression
Or
Represents an expression that is true when left or right are true.
OrderBy
Defines a sorting order
PermissionPolicy
Defines a policy to determine if a user has the authorization to perform an operation on an entity.
Repository<TEntity>
Defines data access methods to a specific database collection.
RepositoryTransaction
RepositoryTransactionOptions
ReturnField
Defines a property to be returned by a search query
SearchCriteria
Represents a search criteria
SearchPolicy
Defines authorization policy for search operations.
SearchResult
Represents the result of a search, containing a stream of entities that constitute a page of results and the total count of entities that fit the criteria given in the search.
UpdatePolicy
Defines authorization policy for update operations.