Repository<T> Class Methods
From MNG Profiler
MNG.Direct Documentation
Repository<T> Class Methods
For a list of all members of this type, see Repository<T> members.
Public Methods
| Name | Description | |
|---|---|---|
| Add | Adds a single specified record to the repository. | |
| AddRange | Adds a list of specified entities to the repository. | |
| Find | Gets all records that satisfy user-defined criteria. | |
| GetAll | Gets all records for the current repository. | |
| Remove | Removes a single specified record from the repository. | |
| RemoveRange | Removes a list of specified entities from the repository. | |
| SingleOrDefault | Attempts to find a single record that satisfies user-defined criteria. Default value is passed if no record is found. |
Protected Methods
| Name | Description | |
|---|---|---|
| GetValue | Attempts to get a repository record using its ID. | |
| Map | Attempts to map a data record to the repository type and populate its properties. | |
| SetValue | Attempts to set/update a repository record using its ID. | |
| ToList | Executes a SQL command and returns a list of the results. |
See Also