Interface IDependentCollection<TPrincipal, TDependent>
- Namespace
- GroupeIsa.Neos.Application.Persistence
- Assembly
- GroupeIsa.Neos.Application.Abstractions.dll
Represents a collection of dependent entity views.
public interface IDependentCollection<TPrincipal, TDependent> : ICollection<TDependent>, IEnumerable<TDependent>, IEnumerable where TPrincipal : class, IEntityView where TDependent : class, IEntityView
Type Parameters
TPrincipal
The principal entity view type.
TDependent
The dependent entity view type.
- Inherited Members
Properties
DeletedItems
Gets the deleted items.
IReadOnlyCollection<TDependent> DeletedItems { get; }
Property Value
- IReadOnlyCollection<TDependent>
Principal
Gets the principal.
TPrincipal Principal { get; }
Property Value
- TPrincipal
Methods
AddNew(bool)
Creates an entity view instance and adds it to the collection.
TDependent AddNew(bool track = true)
Parameters
track
boolA value indicating whether the item should be tracked.
Returns
- TDependent
The added entity view instance.
HasModification()
Indicates whether the collection has modification.
bool HasModification()
Returns
- bool
True if the collection has been modified; if not, false.
IsTracked(TDependent)
Gets a value indicating whether an item is tracked.
bool IsTracked(TDependent item)
Parameters
item
TDependentThe item.
Returns
- bool
True if the item is tracked, false otherwise.
Track(TDependent)
Tracks the item.
void Track(TDependent item)
Parameters
item
TDependentThe item.
Untrack(TDependent)
Untracks the item.
void Untrack(TDependent item)
Parameters
item
TDependentThe item.