Search Results for

    Show / Hide Table of Contents

    Class DatasetColumnsController.NewItemHelperSQL

    Inheritance
    object
    NewItemDescriptor<ISQLTypeWrapper>
    DatasetColumnsController.NewItemHelperSQL
    Implements
    INewItemHelper<ISQLTypeWrapper>
    Inherited Members
    NewItemDescriptor<ISQLTypeWrapper>.CanCreate(UserInfo, IReadOnlyCache, IEntityUpdater)
    NewItemDescriptor<ISQLTypeWrapper>.MarkForInsert(IEntityUpdaterUI, ISQLTypeWrapper)
    NewItemDescriptor<ISQLTypeWrapper>.GetOpenDescriptor(IEntityUpdaterUI, ISQLTypeWrapper)
    NewItemDescriptor<ISQLTypeWrapper>.Descriptor
    NewItemDescriptor<ISQLTypeWrapper>.OverlayIconID
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Views.Controllers
    Assembly: LemonEdge.ClientEntities.dll
    Syntax
    public class DatasetColumnsController.NewItemHelperSQL : NewItemDescriptor<ISQLTypeWrapper>, INewItemHelper<ISQLTypeWrapper>

    Constructors

    NewItemHelperSQL(DatasetColumnsController, Func<IQueryableTypeFactory>)

    Declaration
    public NewItemHelperSQL(DatasetColumnsController controller, Func<IQueryableTypeFactory> queryableTypeFactory)
    Parameters
    Type Name Description
    DatasetColumnsController controller
    Func<IQueryableTypeFactory> queryableTypeFactory

    Properties

    ItemName

    The singlular name of the item to be created.

    Default implementation is the ItemName of the entity type ISQLTypeWrapper

    Declaration
    public override string ItemName { get; }
    Property Value
    Type Description
    string
    Overrides
    LemonEdge.Client.Core.Commands.ViewCommands.NewItemDescriptor<LemonEdge.API.Entities.Reporting.ISQLTypeWrapper>.ItemName

    Methods

    CreateNewItem(UserInfo, IReadOnlyCache, IEntityUpdater)

    Creates a single new entity of type ISQLTypeWrapper and inserts it into the entity collection view (typically a grid)

    Declaration
    public override Task<IEnumerable<ISQLTypeWrapper>> CreateNewItem(UserInfo userInfo, IReadOnlyCache cache, IEntityUpdater updater)
    Parameters
    Type Name Description
    UserInfo userInfo

    The current logged in user

    IReadOnlyCache cache

    A local cache

    IEntityUpdater updater

    The context the items are being created in and can be added to

    Returns
    Type Description
    Task<IEnumerable<ISQLTypeWrapper>>

    A list of the newly created items.

    Overrides
    LemonEdge.Client.Core.Commands.ViewCommands.NewItemDescriptor<LemonEdge.API.Entities.Reporting.ISQLTypeWrapper>.CreateNewItem(LemonEdge.API.Core.Context.UserInfo, LemonEdge.API.Core.Data.IReadOnlyCache, LemonEdge.API.Core.Data.IEntityUpdater)

    Implements

    INewItemHelper<T>

    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.