Interface IOrganizationRepository<TId, TDocument, TFilter>
Basic repository
Inherited Members
System.IDisposable.Dispose()
Namespace: Simplic.Data.NoSql
Assembly: Simplic.Data.dll
Syntax
public interface IOrganizationRepository<TId, TDocument, TFilter> : IRepository<TId, TDocument, TFilter>, IReadOnlyRepository<TId, TDocument, TFilter>, IDisposable where TDocument : IDocument<TId> where TFilter : IFilter<TId>
Type Parameters
Name | Description |
---|---|
TId | PK (ID) type |
TDocument | Entity type |
TFilter | Filter type |
Methods
| Improve this Doc View SourceGetAllAsync(Boolean)
Get all entities from data source
Declaration
Task<IEnumerable<TDocument>> GetAllAsync(bool queryAllOrganizations = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | queryAllOrganizations |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TDocument>> | Enumerable of entities |
GetAsync(TId, Boolean)
Get an entity by its id
Declaration
Task<TDocument> GetAsync(TId id, bool queryAllOrganizations = false)
Parameters
Type | Name | Description |
---|---|---|
TId | id | |
System.Boolean | queryAllOrganizations |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TDocument> | Entity |