Class PersonRows
Persons in a company or an organizations. All associates have a corresponding person record Collection of PersonRow. Each element of the collection represents one row in the Person table.
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class PersonRows : TableRowsBase, INestedPersist, IEnumerable<INestedPersist>, ISoCollection, INotifyCollectionChanged, IBindingList, IList, ICollection, IEnumerable
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Properties
this[int]
Get a PersonRow given its index in the collection.
Declaration
public PersonRow this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of the PersonRow in the collection |
Property Value
Type | Description |
---|---|
PersonRow |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Methods
Add(PersonRow)
Add one PersonRow to the collection.
Declaration
public int Add(PersonRow row)
Parameters
Type | Name | Description |
---|---|---|
PersonRow | row | An instance of PersonRow to be added to the collection. |
Returns
Type | Description |
---|---|
int | The index of the added PersonRow. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
AddNew()
Add a new instance of PersonRow added to the collection.
Declaration
public PersonRow AddNew()
Returns
Type | Description |
---|---|
PersonRow | A new instance of PersonRow added to the collection. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
AddRange(IEnumerable<PersonRow>)
Add a range of PersonRow to the collection.
Declaration
public PersonRows AddRange(IEnumerable<PersonRow> rows)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<PersonRow> | rows |
Returns
Type | Description |
---|---|
PersonRows | The updated PersonRows collection object. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
CreateChild()
Create a new instance of PersonRow
Declaration
protected override TableRowBase CreateChild()
Returns
Type | Description |
---|---|
TableRowBase | New instance of PersonRow |
Overrides
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
CreateNew()
Create a new instance of the PersonRows object. This collection will contain no rows.
Declaration
public static PersonRows CreateNew()
Returns
Type | Description |
---|---|
PersonRows | A new instance of the PersonRows object. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Find(Predicate<PersonRow>)
Apply the predicate to each element of the collection and return the first row that matches; if no match then return null
Declaration
public PersonRow Find(Predicate<PersonRow> condition)
Parameters
Type | Name | Description |
---|---|---|
Predicate<PersonRow> | condition |
Returns
Type | Description |
---|---|
PersonRow |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
FindAll(Predicate<PersonRow>)
Return a new collection that contains only those elements that match the condition. Elements are shared, not clones! of the original collection
Declaration
public PersonRows FindAll(Predicate<PersonRow> condition)
Parameters
Type | Name | Description |
---|---|---|
Predicate<PersonRow> | condition |
Returns
Type | Description |
---|---|
PersonRows |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
ForEach(Action<PersonRow>)
Method that iterates over all members and applies the action parameter to each of them
Declaration
public void ForEach(Action<PersonRow> whatToDo)
Parameters
Type | Name | Description |
---|---|---|
Action<PersonRow> | whatToDo |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
GetFromCustomSearch(CustomSearch)
Create a new instance of the PersonRows object, and populate it with data from a custom search. If the search returns no results, an empty collection will be returned; if the result contains rows, a collection of PersonRow objects representing each row will be returned.
Declaration
public static PersonRows GetFromCustomSearch(PersonRows.CustomSearch query)
Parameters
Type | Name | Description |
---|---|---|
PersonRows.CustomSearch | query | The custom search to execute against the database |
Returns
Type | Description |
---|---|
PersonRows | A new instance of the PersonRows object, reflecting the result of the query. |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
GetFromIdxBusinessIdx(int)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersBusn_idx'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxBusinessIdx(int businessIdx)
Parameters
Type | Name | Description |
---|---|---|
int | businessIdx |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxCategoryIdx(int)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersCatg_idx'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxCategoryIdx(int categoryIdx)
Parameters
Type | Name | Description |
---|---|---|
int | categoryIdx |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxContactId(int)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersCont_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxContactId(int contactId)
Parameters
Type | Name | Description |
---|---|---|
int | contactId |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxContactIdRank(int, short)
Create a new instance of the PersonRow object, by querying the database table via the index 'ICont_idRank'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxContactIdRank(int contactId, short rank)
Parameters
Type | Name | Description |
---|---|---|
int | contactId | |
short | rank |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxDbiAgentId(int)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersDbi_agent_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxDbiAgentId(int dbiAgentId)
Parameters
Type | Name | Description |
---|---|---|
int | dbiAgentId |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxDbiKey(string)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersDbi_key'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxDbiKey(string dbiKey)
Parameters
Type | Name | Description |
---|---|---|
string | dbiKey |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxDbiLastModified(DateTime)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersDbi_last_modified'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxDbiLastModified(DateTime dbiLastModified)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dbiLastModified |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxDbiLastSyncronized(DateTime)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersDbi_last_syncronized'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxDbiLastSyncronized(DateTime dbiLastSyncronized)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dbiLastSyncronized |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxDeletedDate(DateTime)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersDeletedDate'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxDeletedDate(DateTime deletedDate)
Parameters
Type | Name | Description |
---|---|---|
DateTime | deletedDate |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxFirstname(string)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersFname'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxFirstname(string firstname)
Parameters
Type | Name | Description |
---|---|---|
string | firstname |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxKanafname(string)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersKfname'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxKanafname(string kanafname)
Parameters
Type | Name | Description |
---|---|---|
string | kanafname |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxKanalname(string)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersKlname'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxKanalname(string kanalname)
Parameters
Type | Name | Description |
---|---|---|
string | kanalname |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxLastname(string)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersLname'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxLastname(string lastname)
Parameters
Type | Name | Description |
---|---|---|
string | lastname |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxMiddleName(string)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersMiddleName'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxMiddleName(string middleName)
Parameters
Type | Name | Description |
---|---|---|
string | middleName |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxPersonNumber(string)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersPnum'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxPersonNumber(string personNumber)
Parameters
Type | Name | Description |
---|---|---|
string | personNumber |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxSource(short)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersSource'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxSource(short source)
Parameters
Type | Name | Description |
---|---|---|
short | source |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxUserdef2Id(int)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersUdef2_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxUserdef2Id(int userdef2Id)
Parameters
Type | Name | Description |
---|---|---|
int | userdef2Id |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromIdxUserdefId(int)
Create a new instance of the PersonRow object, by querying the database table via the index 'IDXPersUdef_id'. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static PersonRows GetFromIdxUserdefId(int userdefId)
Parameters
Type | Name | Description |
---|---|---|
int | userdefId |
Returns
Type | Description |
---|---|
PersonRows | Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table |
Remarks
This method represents one of the unique indexes on the Person table. Non-unique indexes have corresponding inner classes and methods in the PersonRows collection, since they may return more than one row.
GetFromReader(SoDataReader, PersonTableInfo)
Create a new instance of the PersonRows object, and populate it with data from a reader. If the search returns no results, an empty collection will be returned; if the result contains rows, a collection of PersonRow objects representing each row will be returned.
Note that the internal logic starts by calling reader.Read(), which is correct if you hand the method the result of an ExecuteReader(), but if the reader has already been advanced one or more rows, the current row will be skipped and collection population will start with the next row.Declaration
public static PersonRows GetFromReader(SoDataReader reader, PersonTableInfo tableInfo)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | SoDataReader positioned to a valid database row. |
PersonTableInfo | tableInfo | PersonTableInfo instance used in the query that is the source of the reader. The fields used from the reader will be those owned by this tableinfo object. |
Returns
Type | Description |
---|---|
PersonRows |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Remove(PersonRow)
Removes the given PersonRow from the collection
Declaration
public void Remove(PersonRow row)
Parameters
Type | Name | Description |
---|---|---|
PersonRow | row | the PersonRow to be removed |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
ToArray()
Persons in a company or an organizations. All associates have a corresponding person record Collection of PersonRow. Each element of the collection represents one row in the Person table.
Declaration
public PersonRow[] ToArray()
Returns
Type | Description |
---|---|
PersonRow[] |
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
ToString()
For debugging: Number of members, and the first (up to) 5 items
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Remarks
Row collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type PersonRow to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) PersonRows PersonRows.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as a Rows object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.