Click or drag to resize

Repository Class

Provides the object - relational mapping between domain objects and data source.
Inheritance Hierarchy

Namespace:  Aloe.SystemFrameworks.Domain
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public abstract class Repository

The Repository type exposes the following members.

Properties
  NameDescription
Public propertyAggregateParentRepository
Gets the aggregate parent repository.
Public propertyAttributes
List of Attributes of the container
Public propertyLocalizedName
Gets the name of the repository in the current UI culture.
Public propertyName
The name of the repository, including the name-space.
Public propertyObjectType
Gets the type of the domain objects, which are managed by the repository.
Public propertyParentRepository
Gets the parent repository or null if there is no parent repository.
Public propertyReferences
List of references to entity objects
Public propertyRepositorySource
The RepositorySource of this repository, which allows the repository to access other repositories.
Top
Methods
  NameDescription
Public methodConsumeObjects
Consumes and returns the objects found in the specified buffer.
Public methodCreateQueryT
Returns IQueryable that can be used in LINQ expressions which query the repository
Public methodEnsureFullyLoaded
Ensures that the specified objects are fully loaded.
Public methodEnumerateObjects
Enumerates and returns the objects found in the specified buffer.
Public methodGetAggregateRootRepository
Gets the aggregate root repository. If AggregateParentRepository is null the aggregate root is this repository.
Public methodGetParentReference
Gets the parent ownership reference.
Public methodGetReferenceTObject, TResult
Gets the backing reference of the member, specified in the expression. The expression should be in the format 's => s.Member'.
Public methodIsAggregateRoot
Returns true if this repository is aggregate root.
Public methodRefreshAttributes
Refreshes the attributes collection.
Top
Extension Methods
  NameDescription
Public Extension MethodGetExpressionDependencies
Gets the data attributes and references (from the repository) on which the expression depends.
(Defined by RepositoryExtensions.)
Top
Remarks

Each domain object class requires a corresponding repository class. The repository class handles object creation, loading, validation and querying. The intermediate, even the abstract domain classes also require repository class, if they need to able to be queried.

The repository also contains the meta data about the objects, such as Attributes, References and ChildLists.

See Also