Interface IDataUpdater
Assembly: LemonEdge.API.dll
Syntax
public interface IDataUpdater : IEntityUpdater, IEntityRetriever, IDisposable, IAsyncDisposable
Properties
Cache
Declaration
IReadOnlyCache Cache { get; set; }
Property Value
SafeID
Declaration
Guid? SafeID { get; set; }
Property Value
User
Declaration
Property Value
Methods
GetQueryableItems<T>(out IQueryLock, Guid)
WARNING: This provides direct IQueryable access to the underlying data in the database.
If you enumerate the result it will synchronously execute that and block the thread for the results - use Async methods instead.
Once you have finished execution (unless you are done with the context in which case it can be ignored) with the IQueryable be sure to release the QueryLock - this is what enables the context to have multiple queries running in parallel on the database.
Declaration
IQueryable<T> GetQueryableItems<T>(out IQueryLock lockReleaserAfterQueryableExecution, Guid forType = default) where T : IBaseEntity
Parameters
Type |
Name |
Description |
IQueryLock |
lockReleaserAfterQueryableExecution |
|
Guid |
forType |
|
Returns
Type Parameters
Extension Methods