Show / Hide Table of Contents

Interface IPersistableCollection<T>

A collection that can be persisted to and underlying data store.

Namespace: MESL.SqlRace.Domain.Collections
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface IPersistableCollection<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : EntityBase
Type Parameters
Name Description
T

Methods

Add(IEnumerable<T>)

Add multiple items to the collection

Declaration
void Add(IEnumerable<T> elements)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> elements

Overwrite(T, Predicate<T>)

Overwrite an item that matches a given predicate with another item.

Declaration
bool Overwrite(T item, Predicate<T> func)
Parameters
Type Name Description
T item
System.Predicate<T> func
Returns
Type Description
System.Boolean

Events

ItemAdded

Raised when an item has been added to the collection

Declaration
event EventHandler<ItemEventArgs> ItemAdded
Event Type
Type Description
System.EventHandler<ItemEventArgs>
Back to top Generated by DocFX