Class BaseGridEntityCollectionViewInstanceEnumerator
The ViewDescriptorEnumerator for the IBaseGrid<T>
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core.Enumerators
Assembly: LemonEdge.ClientCore.dll
Syntax
public class BaseGridEntityCollectionViewInstanceEnumerator : ViewDescriptorEnumerator, IDefaultGridViewDescriptorEnumerator, IDefaultViewDescriptorEnumerator, IHaveAddInListeners
Constructors
BaseGridEntityCollectionViewInstanceEnumerator(IDomainContextEventHandler, IEntityDescriptorFactory, IReflectionHelper, ILogger<BaseGridEntityCollectionViewInstanceEnumerator>)
Declaration
public BaseGridEntityCollectionViewInstanceEnumerator(IDomainContextEventHandler eventHandler, IEntityDescriptorFactory entityDescriptorFactory, IReflectionHelper reflectionHelper, ILogger<BaseGridEntityCollectionViewInstanceEnumerator> logger)
Parameters
Type | Name | Description |
---|---|---|
IDomainContextEventHandler | eventHandler | |
IEntityDescriptorFactory | entityDescriptorFactory | |
IReflectionHelper | reflectionHelper | |
ILogger<BaseGridEntityCollectionViewInstanceEnumerator> | logger |
Properties
EntitiesWithDefaultImplementation
Indicates that a ViewDescriptorEnumerator has defaults. This means that it has it's own list of descriptors that it can work with.
Declaration
public IEnumerable<(Type ItemType, Type ParentType)> EntitiesWithDefaultImplementation { get; }
Property Value
Type | Description |
---|---|
IEnumerable<(Type ItemType, Type ParentType)> |
Methods
AddAddInListeners()
Adds listeners.
Declaration
public void AddAddInListeners()
GetAnyReplacingVersion(ViewDescriptorInstance)
Returns any ViewDescriptorInstance definitions from GetViewInstances() where they come from a custom ICustomGrid and configured to replace a standard view ( ReplaceCoreView)
Declaration
public override ViewDescriptorInstance GetAnyReplacingVersion(ViewDescriptorInstance ofView)
Parameters
Type | Name | Description |
---|---|---|
ViewDescriptorInstance | ofView | The standard view instance to replace with a configured one if one is available |
Returns
Type | Description |
---|---|
ViewDescriptorInstance | Any ViewDescriptorInstance definitions from GetViewInstances() where they come
from a custom ICustomGrid and configured to replace a standard view (
ReplaceCoreView), or just the provided |
Overrides
GetViewInstances()
Provides an enumeration of all the View Descriptor Instances that can be used against the IBaseGrid<T> including custom ones defined from BaseGridCustomController<T>
Declaration
public override IEnumerable<ViewDescriptorInstance> GetViewInstances()
Returns
Type | Description |
---|---|
IEnumerable<ViewDescriptorInstance> | An enumeration of all the View Descriptor Instances that can be used against the IBaseGrid<T> including custom ones defined from BaseGridCustomController<T> |
Overrides
RemoveAddInListeners()
Removes listeners.
Declaration
public void RemoveAddInListeners()