C# Class LibiadaWeb.Models.Repositories.Sequences.ElementRepository

The element repository.
Inheritance: IElementRepository
Show file Open project: intervals-mining-lab/libiada-web Class Usage Examples

Private Properties

Property Type Description
CreateLackingElements void
GetOrCreatePitchesInDb int[]

Public Methods

Method Description
Dispose ( ) : void

The dispose.

ElementRepository ( LibiadaWebEntities db ) : System

Initializes a new instance of the ElementRepository class.

ElementsInDb ( Alphabet alphabet, int notationId ) : bool

The elements in db.

GetElements ( List elementIds ) : List

The get elements.

GetOrCreateNotesInDb ( Alphabet alphabet ) : long[]

The get or create notes in db.

GetSelectListItems ( IEnumerable allElements, IEnumerable selectedElements ) : IEnumerable

The get select list items.

ToDbElements ( Alphabet alphabet, int notationId, bool createElements ) : long[]

The to db elements.

ToLibiadaAlphabet ( List elementIds ) : Alphabet

The to libiada alphabet.

Private Methods

Method Description
CreateLackingElements ( Alphabet libiadaAlphabet, int notationId ) : void

The create lacking elements.

GetOrCreatePitchesInDb ( List pitches ) : int[]

The get or create pitches in db.

Method Details

Dispose() public method

The dispose.
public Dispose ( ) : void
return void

ElementRepository() public method

Initializes a new instance of the ElementRepository class.
public ElementRepository ( LibiadaWebEntities db ) : System
db LibiadaWebEntities /// The db. ///
return System

ElementsInDb() public method

The elements in db.
public ElementsInDb ( Alphabet alphabet, int notationId ) : bool
alphabet Alphabet /// The alphabet. ///
notationId int /// The notation id. ///
return bool

GetElements() public method

The get elements.
public GetElements ( List elementIds ) : List
elementIds List /// The element ids. ///
return List

GetOrCreateNotesInDb() public method

The get or create notes in db.
public GetOrCreateNotesInDb ( Alphabet alphabet ) : long[]
alphabet Alphabet /// The alphabet. ///
return long[]

GetSelectListItems() public method

The get select list items.
public GetSelectListItems ( IEnumerable allElements, IEnumerable selectedElements ) : IEnumerable
allElements IEnumerable /// The all elements. ///
selectedElements IEnumerable /// The selected elements. ///
return IEnumerable

ToDbElements() public method

The to db elements.
/// Thrown if alphabet element is not found in db. ///
public ToDbElements ( Alphabet alphabet, int notationId, bool createElements ) : long[]
alphabet Alphabet /// The alphabet. ///
notationId int /// The notation id. ///
createElements bool /// The create elements. ///
return long[]

ToLibiadaAlphabet() public method

The to libiada alphabet.
public ToLibiadaAlphabet ( List elementIds ) : Alphabet
elementIds List /// The element ids. ///
return Alphabet