Search Results for

    Show / Hide Table of Contents

    Class BaseEntityDefaultSingleViewInstanceEnumerator

    The ViewDescriptorEnumerator for the IBaseDefaultSingleView<T>

    Inheritance
    object
    ViewDescriptorEnumerator
    BaseEntityDefaultSingleViewInstanceEnumerator
    Implements
    IDefaultViewDescriptorEnumerator
    IHaveAddInListeners
    Inherited Members
    ViewDescriptorEnumerator.EntityDescriptorFactory
    ViewDescriptorEnumerator.ReflectionHelper
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Views.Core.Enumerators
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public class BaseEntityDefaultSingleViewInstanceEnumerator : ViewDescriptorEnumerator, IDefaultViewDescriptorEnumerator, IHaveAddInListeners

    Constructors

    BaseEntityDefaultSingleViewInstanceEnumerator(IDomainContextEventHandler, IEntityDescriptorFactory, IReflectionHelper, ILogger<BaseEntityDefaultSingleViewInstanceEnumerator>)

    Declaration
    public BaseEntityDefaultSingleViewInstanceEnumerator(IDomainContextEventHandler eventHandler, IEntityDescriptorFactory entityDescriptorFactory, IReflectionHelper reflectionHelper, ILogger<BaseEntityDefaultSingleViewInstanceEnumerator> logger)
    Parameters
    Type Name Description
    IDomainContextEventHandler eventHandler
    IEntityDescriptorFactory entityDescriptorFactory
    IReflectionHelper reflectionHelper
    ILogger<BaseEntityDefaultSingleViewInstanceEnumerator> logger

    Properties

    EntitiesWithDefaultImplementation

    Gets the list of descriptors that this enumerator has controllers for.

    Declaration
    public IEnumerable<EntityDescriptor> EntitiesWithDefaultImplementation { get; }
    Property Value
    Type Description
    IEnumerable<EntityDescriptor>

    Methods

    AddAddInListeners()

    Adds listeners.

    Declaration
    public void AddAddInListeners()

    GetAnyReplacingVersion(ViewDescriptorInstance)

    Returns any ViewDescriptorInstance definitions from GetViewInstances() where they come from a custom ICustomView 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 ICustomView and configured to replace a standard view ( ReplaceCoreView), or just the provided ofView

    Overrides
    ViewDescriptorEnumerator.GetAnyReplacingVersion(ViewDescriptorInstance)

    GetViewInstances()

    Provides an enumeration of all the View Descriptor Instances that can be used against the IBaseDefaultSingleView<T> including custom ones defined from BaseDefaultSingleViewCustomController<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 IBaseDefaultSingleView<T> including custom ones defined from BaseDefaultSingleViewCustomController<T>

    Overrides
    ViewDescriptorEnumerator.GetViewInstances()

    RemoveAddInListeners()

    Removes listeners.

    Declaration
    public void RemoveAddInListeners()

    Implements

    IDefaultViewDescriptorEnumerator
    IHaveAddInListeners

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.