Class RowHelper
Helper class with Row and Rows object utility functions
Inherited Members
Namespace: SuperOffice.CRM.Rows.Util
Assembly: SoDataBase.dll
Syntax
public class RowHelper
Constructors
RowHelper()
Helper class with Row and Rows object utility functions
Declaration
public RowHelper()
Methods
ForceTableRowsCount(EntityCollectionBase, int)
Make sure that the collection has the exact number of items in it.
Declaration
public static void ForceTableRowsCount(EntityCollectionBase rows, int length)
Parameters
Type | Name | Description |
---|---|---|
EntityCollectionBase | rows | Collection to force having the right number of items. |
int | length | The wanted amount of items in the collection. |
Remarks
If the collection is too long, items will be removed from the end of the collection and marked for deletion from the database. If the collection is too short, items will be appended to the end of the collection.
ForceTableRowsCount(TableRowsBase, int)
Make sure that the collection has the exact number of items in it.
Declaration
public static void ForceTableRowsCount(TableRowsBase rows, int length)
Parameters
Type | Name | Description |
---|---|---|
TableRowsBase | rows | Collection to force having the right number of items. |
int | length | The wanted amount of items in the collection. |
Remarks
If the collection is too long, items will be removed from the end of the collection and marked for deletion from the database. If the collection is too short, items will be appended to the end of the collection.