Interface IKeyGenerator

Namespace: redb.Core.Data
Assembly: redb.Core.dll

Key generator abstraction for generating unique IDs.
Replaces EF Core's automatic ID generation.

public interface IKeyGenerator

Methods

NextObjectIdAsync()

Generate next unique ID for objects.

Task<long> NextObjectIdAsync()

NextObjectIdBatchAsync(int)

Generate batch of object IDs for bulk operations.

Task<long[]> NextObjectIdBatchAsync(int count)

NextValueIdAsync()

Generate next unique ID for values.

Task<long> NextValueIdAsync()

NextValueIdBatchAsync(int)

Generate batch of value IDs for bulk operations.

Task<long[]> NextValueIdBatchAsync(int count)