Search Results for

    Show / Hide Table of Contents

    Class ViewDescriptorEnumerator

    A class that provides an enumeration of all possible view descriptor instances for a specific IModelView

    This can be referenced in the ViewDescriptorAttribute for a IModelView

    Inheritance
    System.Object
    ViewDescriptorEnumerator
    BaseEntityDefaultSingleViewInstanceEnumerator
    BaseGridEntityCollectionViewInstanceEnumerator
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Client.Core.Views.Core
    Assembly: ClientCore.dll
    Syntax
    public abstract class ViewDescriptorEnumerator

    Methods

    GetAnyReplacingVersion(ViewDescriptorInstance)

    Provides an opportunity to replace a view descriptor instance with another one when used from CreateView(IModelLayoutDisplayer)

    This is used by the system implementation of IBaseGrid<T> and IBaseDefaultSingleView<T> to provide an override to use a custom grid or view instead (from ICustomGrid, or ICustomView) when ReplaceCoreView is specified

    By default this just returns ofView
    Declaration
    public virtual ViewDescriptorInstance GetAnyReplacingVersion(ViewDescriptorInstance ofView)
    Parameters
    Type Name Description
    ViewDescriptorInstance ofView

    The view to automatically replace with a different view instance if the user has specified that view descriptor should always be overridden with a different one

    Returns
    Type Description
    ViewDescriptorInstance

    A different view dsecriptor if the user has specified to always override the provided ofView system one with a different one. otherwise just returns ofView

    GetViewInstances()

    Provides an enumeration of all the View Descriptor Instances that can be used against the IModelView the ViewDescriptorAttribute is marked against

    Declaration
    public abstract IEnumerable<ViewDescriptorInstance> GetViewInstances()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ViewDescriptorInstance>

    An enumeration of all the View Descriptor Instances that can be used against the IModelView the ViewDescriptorAttribute is marked against

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.