Class EntitySegmentProcessor
Class for processing entity segment with some action.
Inherited Members
EntitySchemaQuery.CreateFilter(FilterComparisonType, String, EntitySchemaQueryMacrosType, DayOfWeek)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.Entities
Assembly: Terrasoft.Core.dll
Syntax
public class EntitySegmentProcessor : EntitySchemaQuery, IManagerItemInstance, ICloneable
Constructors
EntitySegmentProcessor(EntitySchema, UserConnection)
Declaration
public EntitySegmentProcessor(EntitySchema rootSchema, UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
EntitySchema | rootSchema | |
UserConnection | userConnection |
Properties
SegmentChunk
Size of segments chunk that use in one iteration.
Declaration
public int SegmentChunk { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
ProcessSegment(Action<IEnumerable<Guid>>)
Process segment by chunk.
Declaration
public virtual int ProcessSegment(Action<IEnumerable<Guid>> processor)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Collections.Generic.IEnumerable<System.Guid>> | processor | Action that process segment |
Returns
Type | Description |
---|---|
System.Int32 | Number of processed records |
Implements
System.ICloneable