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
TPrincipalThe principal entity view type.
TDependentThe dependent entity view type.
- Inherited Members
- Extension Methods
Properties
DeletedItems
Gets the deleted items.
IReadOnlyCollection<TDependent> DeletedItems { get; }
Property Value
- IReadOnlyCollection<TDependent>
IsInitialized
Gets a value indicating whether the collection is initialized.
bool IsInitialized { get; }
Property Value
Principal
Gets the principal.
TPrincipal Principal { get; }
Property Value
- TPrincipal
Methods
AcceptChanges()
Accepts the changes and resets the tracking state.
void AcceptChanges()
AddNew(bool)
Creates an entity view instance and adds it to the collection.
TDependent AddNew(bool track = true)
Parameters
trackboolA 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
itemTDependentThe item.
Returns
- bool
True if the item is tracked, false otherwise.
Track(TDependent)
Tracks the item.
void Track(TDependent item)
Parameters
itemTDependentThe item.
Untrack(TDependent)
Untracks the item.
void Untrack(TDependent item)
Parameters
itemTDependentThe item.