Interface IRedbList

Assembly: redb.Core.dll

REDB list interface
Represents a reference list for list-type fields

public interface IRedbList

Properties

Alias

List alias (short name)

string? Alias { get; }

Id

Unique list identifier

long Id { get; }

Items

List items collection (read-only)

IReadOnlyCollection<IRedbListItem> Items { get; }

Name

List name

string Name { get; }

Methods

AddItem(string, IRedbObject, string?)

Add item to list with linked object (Aggregate Root pattern)

IRedbListItem AddItem(string value, IRedbObject linkedObject, string? alias = null)

AddItem(string, long?, string?)

Add item to list (Aggregate Root pattern)

IRedbListItem AddItem(string value, long? idObject = null, string? alias = null)

CreateItem(string, IRedbObject, string?)

Create item for list with linked object

IRedbListItem CreateItem(string value, IRedbObject linkedObject, string? alias = null)

CreateItem(string, long?, string?)

Create item for list without adding to collection

IRedbListItem CreateItem(string value, long? idObject = null, string? alias = null)

FindItemByValue(string)

Find item by value

IRedbListItem? FindItemByValue(string value)

RemoveItem(IRedbListItem)

Remove item from list

bool RemoveItem(IRedbListItem item)