Class ScaffoldService
- Namespace
- The.Web.Entities
- Assembly
- Instagile.Web.Client.dll
public sealed class ScaffoldService
- Inheritance
-
ScaffoldService
- Inherited Members
-
Constructors
ScaffoldService(IEnumerable<ICommandSpec>, IEnumerable<IEditSpec>, IEnumerable<IListSpec>, IEnumerable<ICriteriaSpec>, Options)
public ScaffoldService(IEnumerable<ICommandSpec> commandOverrides, IEnumerable<IEditSpec> editOverrides, IEnumerable<IListSpec> listOverrides, IEnumerable<ICriteriaSpec> criteriaOverrides, Options options)
Parameters
commandOverrides IEnumerable<ICommandSpec>
editOverrides IEnumerable<IEditSpec>
listOverrides IEnumerable<IListSpec>
criteriaOverrides IEnumerable<ICriteriaSpec>
options Options
Properties
ImageLimit
public long ImageLimit { get; }
Property Value
- long
ProgressDelay
public TimeSpan ProgressDelay { get; }
Property Value
- TimeSpan
SearchDelay
public TimeSpan SearchDelay { get; }
Property Value
- TimeSpan
UploadLimit
public long UploadLimit { get; }
Property Value
- long
Methods
CreateEntityAsync(IEntityInfo, IEntityContext, Guid?)
public Task<IEntity> CreateEntityAsync(IEntityInfo metadata, IEntityContext context, Guid? id = null)
Parameters
metadata IEntityInfo
context IEntityContext
id Guid?
Returns
- Task<IEntity>
CreateEntityAsync<T>(IEntityContext, Guid?)
public Task<T> CreateEntityAsync<T>(IEntityContext context, Guid? id = null) where T : IEntity<T>
Parameters
context IEntityContext
id Guid?
Returns
- Task<T>
Type Parameters
T
ExtractColumns(IEntityInfo)
public IReadOnlyList<ColumnSpec> ExtractColumns(IEntityInfo metadata)
Parameters
metadata IEntityInfo
Returns
- IReadOnlyList<ColumnSpec>
public IReadOnlyList<CriterionSpec> ExtractCriteria(IEntityInfo metadata)
Parameters
metadata IEntityInfo
Returns
- IReadOnlyList<CriterionSpec>
public SectionSpec ExtractSection(IEntityInfo metadata, string name)
Parameters
metadata IEntityInfo
name string
Returns
- SectionSpec
public IReadOnlyList<SectionSpec> ExtractSections(IEntityInfo metadata)
Parameters
metadata IEntityInfo
Returns
- IReadOnlyList<SectionSpec>
GenerateCollectionCommands<T>(CommandContext, IEntityInfo, IEntitySet<T>)
public IReadOnlyList<Command> GenerateCollectionCommands<T>(CommandContext context, IEntityInfo metadata, IEntitySet<T> collection) where T : IEntity<T>
Parameters
context CommandContext
metadata IEntityInfo
collection IEntitySet<T>
Returns
- IReadOnlyList<Command>
Type Parameters
T
GenerateCollectionEntityCommands<T>(CommandContext, IEntityInfo, IEntitySet<T>, T)
public IReadOnlyList<Command> GenerateCollectionEntityCommands<T>(CommandContext context, IEntityInfo metadata, IEntitySet<T> collection, T entity) where T : IEntity<T>
Parameters
context CommandContext
metadata IEntityInfo
collection IEntitySet<T>
entity T
Returns
- IReadOnlyList<Command>
Type Parameters
T
GenerateEntityCommands<T>(CommandContext, IEntityInfo, T)
public IReadOnlyList<Command> GenerateEntityCommands<T>(CommandContext context, IEntityInfo metadata, T entity) where T : IEntity<T>
Parameters
context CommandContext
metadata IEntityInfo
entity T
Returns
- IReadOnlyList<Command>
Type Parameters
T
GenerateListCommands<T>(CommandContext, IEntityInfo, IEntityQuery<T>)
public IReadOnlyList<Command> GenerateListCommands<T>(CommandContext context, IEntityInfo metadata, IEntityQuery<T> entities) where T : IEntity<T>
Parameters
context CommandContext
metadata IEntityInfo
entities IEntityQuery<T>
Returns
- IReadOnlyList<Command>
Type Parameters
T
GenerateReferenceCommands<T>(CommandContext, IEntityInfo, IOwnedValue<T?>)
public IReadOnlyList<Command> GenerateReferenceCommands<T>(CommandContext context, IEntityInfo metadata, IOwnedValue<T?> reference) where T : IEntity<T>
Parameters
context CommandContext
metadata IEntityInfo
reference IOwnedValue<T>
Returns
- IReadOnlyList<Command>
Type Parameters
T
GetRowLevel(IEntityInfo, IEntity)
public MessageLevel? GetRowLevel(IEntityInfo metadata, IEntity row)
Parameters
metadata IEntityInfo
row IEntity
Returns
- MessageLevel?
LoadEntityAsync(IEntityInfo, IEntityContext, Guid)
public Task<IEntity> LoadEntityAsync(IEntityInfo metadata, IEntityContext context, Guid id)
Parameters
metadata IEntityInfo
context IEntityContext
id Guid
Returns
- Task<IEntity>
LoadEntityAsync<T>(IEntityContext, Guid)
public Task<T> LoadEntityAsync<T>(IEntityContext context, Guid id) where T : IEntity<T>
Parameters
context IEntityContext
id Guid
Returns
- Task<T>
Type Parameters
T