Click or drag to resize

EntityRepository Class

Represents all entity objects of a given type, e.g. all Customers, etc.
Inheritance Hierarchy

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

The EntityRepository type exposes the following members.

Properties
  NameDescription
Public propertyAggregateParentRepository
Gets the aggregate parent repository.
(Inherited from Repository.)
Public propertyAttributes
List of Attributes of the container
(Inherited from Repository.)
Public propertyChildCollections
List of collections of child objects
Public propertyEntityName
Gets the name of the entity.
Public propertyGhostObjectType
Gets the type of the ghost object.
Public propertyLocalizedName
Gets the name of the repository in the current UI culture.
(Inherited from Repository.)
Public propertyName
The name of the repository, including the name-space.
(Inherited from Repository.)
Public propertyObjectType
Gets the type of the domain objects, which are managed by the repository.
(Inherited from Repository.)
Public propertyParentRepository
Gets the parent repository or null if there is no parent repository.
(Inherited from Repository.)
Public propertyPrimaryTableName
The name of the primary storage table, used to persist the domain objects
(Inherited from DataAccessRepository.)
Public propertyReferences
List of references to entity objects
(Inherited from Repository.)
Public propertyRepositorySource
The RepositorySource of this repository, which allows the repository to access other repositories.
(Inherited from Repository.)
Public propertyRules
Gets the repository rules.
(Inherited from EditableRepository.)
Public propertySupportsObjectDuplication
Gets a value indicating whether the repository supports object duplication.
Top
Methods
  NameDescription
Public methodConsumeObjects
Consumes and returns the objects found in the specified buffer.
(Overrides RepositoryConsumeObjects(ObjectTransaction, IBuffer, Boolean).)
Public methodCreateDataAccessQuery
Creates a new data access query for the repository, with the specified filter
(Inherited from DataAccessRepository.)
Public methodCreateQueryT
Returns IQueryable that can be used in LINQ expressions which query the repository
(Inherited from DataAccessRepository.)
Public methodDuplicateObject
Duplicates the object.
Public methodEnsureFullyLoaded
Ensures that the specified objects are fully loaded.
(Inherited from Repository.)
Public methodEnumerateObjects
Enumerates and returns the objects found in the specified buffer.
(Overrides DataAccessRepositoryEnumerateObjects(ObjectTransaction, IBuffer, Boolean).)
Public methodExecuteBusinessRules
Validates the specified object for the specified business event.
(Inherited from EditableRepository.)
Public methodGetAggregateRootRepository
Gets the aggregate root repository. If AggregateParentRepository is null the aggregate root is this repository.
(Inherited from Repository.)
Public methodGetGhostObject
Gets the ghost object of the current repository.
Public methodGetIdAttribute
Returns the attribute, which gets the Id of entity objects
Public methodGetLocalObjectByKey
Finds local object with the specified repository-specific key. Returns null if the object is not found in the local buffer.
Public methodGetObjectByKey
Finds or loads object with the specified repository-specific key. The object is loaded as lazy as possible.
Public methodGetObjectByPrimaryKey
Gets or loads the object with the specified primary key.
Public methodGetObjectByRow
Finds or creates an object, referencing the specified buffer row.
(Inherited from DataAccessRepository.)
Public methodGetObjectKeys
Gets the repository-specific object keys from the objects in the specified buffer.
Public methodGetObjectsByKeys
Find or loads objects with the specified repository-specific keys. The objects are eagerly mass loaded.
Public methodGetObjectsByPrimaryKeys
Gets or loads the objects with the specified primary keys. The objects are eagerly mass loaded.
Public methodGetObjectsByRows
Finds or creates objects, referencing the specified buffer row.
(Inherited from DataAccessRepository.)
Public methodGetParentReference
Gets the parent ownership reference.
(Inherited from Repository.)
Public methodGetReferenceTObject, TResult
Gets the backing reference of the member, specified in the expression. The expression should be in the format 's => s.Member'.
(Inherited from Repository.)
Public methodInstantiateNewObject
Creates a new domain object of the type, managed by the repository.
(Inherited from EditableRepository.)
Public methodIsAggregateRoot
Returns true if this repository is aggregate root.
(Inherited from Repository.)
Public methodReadToBuffer
Executes the query and returns the result in a buffer
(Inherited from DataAccessRepository.)
Public methodRefreshAttributes
Refreshes the attributes collection.
(Inherited from Repository.)
Public methodRegisterRule
Registers a constraint for the specified validation events.
(Inherited from EditableRepository.)
Public methodRegisterRuleForTBusinessEvent
Registers the rule for all events of the specified event type.
(Inherited from EditableRepository.)
Public methodRegisterRuleForAttributeChanged(String, IBusinessRule)
Registers a rule for the AttributeChangedBusinessEvent event.
(Inherited from EditableRepository.)
Public methodRegisterRuleForAttributeChanged(IDataAttribute, IBusinessRule)
Registers a rule for the AttributeChangedBusinessEvent event.
(Inherited from EditableRepository.)
Public methodRegisterRuleForAttributeChanging
Registers a rule for the AttributeChangingBusinessEvent event.
(Inherited from EditableRepository.)
Public methodRegisterRuleForCommit
Registers a constraint for the Commit validation event. For more information, ValidationEvent.
(Inherited from EditableRepository.)
Public methodRegisterRuleForObjectReferenceChanged
Registers a rule for the ObjectReferenceChangedBusinessEvent event.
(Inherited from EditableRepository.)
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
See Also