Search Results for

    Show / Hide Table of Contents

    Class ViewSerializedParamAttribute

    An attribute that can be placed against a view controller to indicate the type of parameter (inheriting from ViewSerializedParam) the view itself uses

    Typically this can be indicated using the ViewDescriptorAttribute against the IModelView itself using the ViewDescriptorEnumerator option

    However for views that are generic, although the view maybe the same there maybe many different parameter types depending on the generic type

    For instance the BaseGridController<T> works with the IBaseGrid<T> view. Any implementation of the controller can be marked with this attribute so the ViewDescriptorEnumerator can retrieve the correct parameter type for that grid controller

    You can use this in your own ViewDescriptorEnumerator, or against any grid controller which already looks for this attribute. i.e. the SQLWrapperResultsController uses this to specify it uses the SQLWrapperResultsViewParams
    Inheritance
    object
    Attribute
    ViewSerializedParamAttribute
    Inherited Members
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.Equals(object)
    Attribute.GetHashCode()
    Attribute.Match(object)
    Attribute.IsDefaultAttribute()
    Attribute.TypeId
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.Client.Core.Views.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class ViewSerializedParamAttribute : Attribute

    Constructors

    ViewSerializedParamAttribute(Type)

    The type of parameter to use for the view of this controller. Must inherit from ViewSerializedParam

    Declaration
    public ViewSerializedParamAttribute(Type defaultSerializedParamType)
    Parameters
    Type Name Description
    Type defaultSerializedParamType

    The parameter type that inherits from ViewSerializedParam to be used against the view for this controller

    Properties

    Default

    The type of parameter to use for the view of this controller. Must inherit from ViewSerializedParam

    Declaration
    public Type Default { get; }
    Property Value
    Type Description
    Type

    Methods

    Create()

    Creates a new default instance of the Default parameter type (inheriting from ViewSerializedParam) for this controller

    Declaration
    public ViewSerializedParam Create()
    Returns
    Type Description
    ViewSerializedParam

    A new default instance of the Default parameter type (inheriting from ViewSerializedParam) for this controller

    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.