Class DatasetColumnsController.NewItemHelperSQL
Implements
Inherited Members
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)