Class ProTreeProviderBase
Pro base class for TreeProvider with PVT instead of get_object_json.
Database-agnostic: SQL is provided via dialect.
public abstract class ProTreeProviderBase : TreeProviderBase, ITreeProvider
Inheritance
Implements
Derived
Inherited Members
Properties
ListProvider
ListProvider for loading list items during Props materialization.
protected IListProvider? ListProvider { get; }
Methods
CreateProLazyPropsLoader()
Creates ProLazyPropsLoader for PVT materialization.
protected abstract ILazyPropsLoader CreateProLazyPropsLoader()
GetChildrenWithUserAsync<TProps>(long, long?, bool, CancellationToken)
Pro: PVT instead of get_object_json for typed children.
protected override Task<IEnumerable<TreeRedbObject<TProps>>> GetChildrenWithUserAsync<TProps>(long parentId, long? userId = null, bool checkPermissions = false, CancellationToken cancellationToken = default) where TProps : class, new()
GetChildrenWithUserAsync<TProps>(long, long?, bool)
Pro: PVT instead of get_object_json for typed children.
protected override Task<IEnumerable<TreeRedbObject<TProps>>> GetChildrenWithUserAsync<TProps>(long parentId, long? userId = null, bool checkPermissions = false) where TProps : class, new()
GetPolymorphicChildrenWithUserAsync(long, long?, bool, CancellationToken)
Pro: PVT instead of get_object_json for polymorphic children.
protected override Task<IEnumerable<ITreeRedbObject>> GetPolymorphicChildrenWithUserAsync(long parentId, long? userId = null, bool checkPermissions = false, CancellationToken cancellationToken = default)
GetPolymorphicChildrenWithUserAsync(long, long?, bool)
Pro: PVT instead of get_object_json for polymorphic children.
protected override Task<IEnumerable<ITreeRedbObject>> GetPolymorphicChildrenWithUserAsync(long parentId, long? userId = null, bool checkPermissions = false)
LoadChildrenBaseAsync(long, CancellationToken)
SQL: Load all children (base fields only).
protected abstract Task<List<RedbObjectRow>> LoadChildrenBaseAsync(long parentId, CancellationToken cancellationToken = default)
LoadChildrenBaseAsync(long)
SQL: Load all children (base fields only).
protected abstract Task<List<RedbObjectRow>> LoadChildrenBaseAsync(long parentId)
LoadChildrenBySchemeBaseAsync(long, long, CancellationToken)
SQL: Load children by scheme (base fields only).
protected abstract Task<List<RedbObjectRow>> LoadChildrenBySchemeBaseAsync(long parentId, long schemeId, CancellationToken cancellationToken = default)
LoadChildrenBySchemeBaseAsync(long, long)
SQL: Load children by scheme (base fields only).
protected abstract Task<List<RedbObjectRow>> LoadChildrenBySchemeBaseAsync(long parentId, long schemeId)
LoadDynamicObjectAsync(long, IRedbUser?, CancellationToken)
Pro: PVT instead of get_object_json for dynamic object loading.
protected override Task<IRedbObject> LoadDynamicObjectAsync(long objectId, IRedbUser? user = null, CancellationToken cancellationToken = default)
LoadDynamicObjectAsync(long, IRedbUser?)
Pro: PVT instead of get_object_json for dynamic object loading.
protected override Task<IRedbObject> LoadDynamicObjectAsync(long objectId, IRedbUser? user = null)
LoadObjectByIdAsync(long, CancellationToken)
SQL: Load object by ID (base fields only).
protected abstract Task<RedbObjectRow?> LoadObjectByIdAsync(long objectId, CancellationToken cancellationToken = default)
LoadObjectByIdAsync(long)
SQL: Load object by ID (base fields only).
protected abstract Task<RedbObjectRow?> LoadObjectByIdAsync(long objectId)
MapRowToRedbObject<TProps>(RedbObjectRow)
Map RedbObjectRow to typed RedbObject.
protected static RedbObject<TProps> MapRowToRedbObject<TProps>(RedbObjectRow row) where TProps : class, new()