Method GetByUniqueAsync<TProps>(Expression<Func<TProps, object?>>, object?, int, CancellationToken)

Assembly: redb.Core.dll

The object whose [RedbUnique] property holds the given value, or null. One probe of the
partial unique index: the value is canonicalised and hashed exactly as the save path
does it. Throws RedbUniqueKeyDefinitionException when the property is not a unique key.

public Task<RedbObject<TProps>?> GetByUniqueAsync<TProps>(Expression<Func<TProps, object?>> keyProperty, object? value, int depth = 10, CancellationToken cancellationToken = default) where TProps : class, new()