Show / Hide Table of Contents

Class SessionDataItemsCollection<T>

This collection class supports persistence of data items associated with a session (i.e. session items and lap items). Includes separate api for loading of binary data associated with a data item (explicit call is required for binary data)

Inheritance
System.Object
SynchronizedList<T>
PersistableCollection<T>
SessionDataItemsCollection<T>
Implements
System.Collections.IList
System.Collections.ICollection
IPersistableCollection<T>
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
PersistableCollection<T>.Clear()
PersistableCollection<T>.Add(IEnumerable<T>)
PersistableCollection<T>.Overwrite(T, Predicate<T>)
PersistableCollection<T>.RemoveAll(Predicate<T>)
PersistableCollection<T>.ClearItems()
PersistableCollection<T>.InitialAddItems(IEnumerable<T>)
PersistableCollection<T>.PublishAddedEvent(T)
PersistableCollection<T>.PublishRemovedEvent(T)
PersistableCollection<T>.RemoveNoRepository(T)
PersistableCollection<T>.SetItem(Int32, T)
PersistableCollection<T>.ItemAdded
PersistableCollection<T>.ItemRemoved
SynchronizedList<T>.Add(T)
SynchronizedList<T>.CopyTo(T[], Int32)
SynchronizedList<T>.IndexOf(T)
SynchronizedList<T>.Contains(T)
SynchronizedList<T>.GetEnumerator()
SynchronizedList<T>.Clone()
SynchronizedList<T>.Remove(T)
SynchronizedList<T>.Insert(Int32, T)
SynchronizedList<T>.Add(Object)
SynchronizedList<T>.Contains(Object)
SynchronizedList<T>.IndexOf(Object)
SynchronizedList<T>.Insert(Int32, Object)
SynchronizedList<T>.Remove(Object)
SynchronizedList<T>.AddBase(Object)
SynchronizedList<T>.CopyTo(Array, Int32)
SynchronizedList<T>.CopyToBase(Array, Int32)
SynchronizedList<T>.Items
SynchronizedList<T>.Item[Int32]
SynchronizedList<T>.Count
SynchronizedList<T>.IsSynchronized
SynchronizedList<T>.IsFixedSize
SynchronizedList<T>.SyncRoot
Namespace: MESL.SqlRace.Domain.Collections
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class SessionDataItemsCollection<T> : PersistableCollection<T>, IList, ICollection, IPersistableCollectionInternal<T>, IPersistableCollection<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : SessionDataItem
Type Parameters
Name Description
T

Type of session data item in collection

Methods

AddNoRepository(T)

Adds the item without modifying the repository.

Declaration
protected override void AddNoRepository(T item)
Parameters
Type Name Description
T item

The item.

Overrides
MESL.SqlRace.Domain.Collections.PersistableCollection<T>.AddNoRepository(T)

GetBinaryData(T)

Gets the binary data for the passed item.

Declaration
public byte[] GetBinaryData(T item)
Parameters
Type Name Description
T item

The item object.

Returns
Type Description
System.Byte[]

Byte array representing the item

GetPersistableGuid()

Generates a persistable GUID used to uniquely identify the session details

Declaration
public Guid GetPersistableGuid()
Returns
Type Description
System.Guid

A unique Guid

InsertItem(Int32, T)

Inserts the item.

Declaration
protected override void InsertItem(int index, T newItem)
Parameters
Type Name Description
System.Int32 index

The index.

T newItem

The new item.

Overrides
MESL.SqlRace.Domain.Collections.PersistableCollection<T>.InsertItem(System.Int32, T)

RemoveItem(Int32)

Removes the object at the index from the System.Collections.ObjectModel.Collection`1. If the item is associated with binary data then the underlying binary data is deleted from the database.

Declaration
protected override void RemoveItem(int index)
Parameters
Type Name Description
System.Int32 index

The index.

Overrides
MESL.SqlRace.Domain.Collections.PersistableCollection<T>.RemoveItem(System.Int32)

Replace(List<T>)

Replaces the session data items with new ones

Declaration
public void Replace(List<T> newItems)
Parameters
Type Name Description
System.Collections.Generic.List<T> newItems

Implements

System.Collections.IList
System.Collections.ICollection
IPersistableCollection<T>
System.Collections.Generic.IList<>
System.Collections.Generic.ICollection<>
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
Back to top Generated by DocFX