The TestUnitOfWork type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | TestUnitOfWork |
Initializes a new instance of the TestUnitOfWork class.
|
Methods
Name | Description | |
---|---|---|
![]() | Add |
Registers the specified entity as a pending insert.
(Overrides UnitOfWorkBase..::.Add(Entity).) |
![]() | Attach | Overloaded. |
![]() | BeginTransaction | Overloaded. |
![]() | Calculate | Overloaded. |
![]() | Count | Overloaded. |
![]() | Detach |
Detaches the specified Entity from the current unit of work.
(Overrides UnitOfWorkBase..::.Detach(Entity).) |
![]() | Dispose | Overloaded. |
![]() | Execute |
Executes a database stored procedure.
(Overrides UnitOfWorkBase..::.Execute(ProcedureQuery).) |
![]() | Finalize |
Performs object finalization.
(Inherited from UnitOfWorkBase.) |
![]() | Find | Overloaded. |
![]() | FindById | Overloaded. |
![]() | FindBySql<(Of <(TEntity>)>) |
Returns a strongly typed list of Entity objects that
represent the records returned by the specified database command.
(Overrides UnitOfWorkBase..::.FindBySql<(Of <(TEntity>)>)(IDbCommand).) |
![]() | FindGroup |
Returns a set of Entity objects that match the provided query specification and places the results
in the provided EntityTuple and is grouped by entity type
(Overrides UnitOfWorkBase..::.FindGroup(Query, EntityTuple).) |
![]() | FindOne | Overloaded. |
![]() | GetEnumerator |
Get an enumerator over the entities currently attached to this unit of work
(Inherited from UnitOfWorkBase.) |
![]() | Import<(Of <(TEntity>)>) |
Imports the specified source object to the current unit of work which will
map its properties against the currently loaded version of an associated
entity, the type of which shall be TEntity.
(Overrides UnitOfWorkBase..::.Import<(Of <(TEntity>)>)(Object).) |
![]() | OnDisposed |
Raises the Disposed event.
(Inherited from UnitOfWorkBase.) |
![]() | PrepareCommand |
Prepares a IDbCommand to run against the underlying database.
(Overrides UnitOfWorkBase..::.PrepareCommand(IDbCommand).) |
![]() | Project | Overloaded. |
![]() | Remove | Overloaded. |
![]() | SaveChanges | Overloaded. |
![]() | Search | Overloaded. |
![]() | SetExpectedCalculateResult | Overloaded. |
![]() | SetExpectedCollectionResult |
Set the result of the next query which would return a collection of entities
|
![]() | SetExpectedCountResult |
Set the result of the next count query
|
![]() | SetExpectedGroupResult |
Set the result of the next FindByGroup query
|
![]() | SetExpectedProjectionResult | Overloaded. |
![]() | SetExpectedSearchResult |
Set the result of the next search query
|
![]() | SetExpectedSingleResult |
Set the result of the next FindOne query
|
![]() | Update |
Updates entities by executing SQL directly against the database. NB. No entities are
materialized and therefore no callbacks run, cached entities are not updated in the second-level
cache or full-text search index etc.
(Overrides UnitOfWorkBase..::.Update(Query, Object).) |
Properties
Name | Description | |
---|---|---|
![]() | Context |
The LightSpeedContext that spawned this IUnitOfWork.
(Inherited from UnitOfWorkBase.) |
Events
Name | Description | |
---|---|---|
![]() | Disposed |
Signals that the component has been disposed.
(Inherited from UnitOfWorkBase.) |