Class ProjectMemberCollection
Link-table between person and project
Collection of ProjectMember. Each element of the collection represents one entity based on ProjectMember.Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public class ProjectMemberCollection : EntityCollectionBase, INestedPersist, IEnumerable<INestedPersist>, ISoCollection, INotifyCollectionChanged, IBindingList, IList, ICollection, IEnumerable
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
Constructors
ProjectMemberCollection(ProjectMemberCollectionIdx)
Constructor for class ProjectMemberCollection.
This object represents a collection of rows in table 'projectmember'.
Table contact: Project members
Declaration
protected ProjectMemberCollection(ProjectMemberCollection.ProjectMemberCollectionIdx idx)
Parameters
Type | Name | Description |
---|---|---|
ProjectMemberCollection.ProjectMemberCollectionIdx | idx |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
Fields
_idx
Fetcher class the collection is based on
Declaration
protected ProjectMemberCollection.ProjectMemberCollectionIdx _idx
Field Value
Type | Description |
---|---|
ProjectMemberCollection.ProjectMemberCollectionIdx |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
_rows
Row objects that the collection is based on.
Declaration
protected ProjectMemberRows _rows
Field Value
Type | Description |
---|---|
ProjectMemberRows |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
Properties
Index
Retrieve the index for ProjectMemberCollection
Declaration
public ProjectMemberCollection.ProjectMemberCollectionIdx Index { get; }
Property Value
Type | Description |
---|---|
ProjectMemberCollection.ProjectMemberCollectionIdx |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
this[int]
Get a ProjectMember from the collection from its zero-based index.
Declaration
public ProjectMember this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Zero-based index in the collection. |
Property Value
Type | Description |
---|---|
ProjectMember |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
Rows
The ecapsulated object ProjectMemberRows.
Declaration
public ProjectMemberRows Rows { get; }
Property Value
Type | Description |
---|---|
ProjectMemberRows |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
Sentries
The collection of sentries that are guarding this collection of rows. This collection is used by RDB entities which return HDB collections.
For example, the contact.Faxes returns a PhoneRows collection in which each row will need to check the contact's sentry for permission to read/write their field
Declaration
public override SentryCollection Sentries { get; }
Property Value
Type | Description |
---|---|
SentryCollection |
Overrides
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
Methods
Add(ProjectMember)
Add one ProjectMember to the collection.
Declaration
public int Add(ProjectMember projectMember)
Parameters
Type | Name | Description |
---|---|---|
ProjectMember | projectMember | An instance of ProjectMember to be added to the collection. |
Returns
Type | Description |
---|---|
int | The index of the added ProjectMember. |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
AddNew()
Get a new instance of ProjectMember added to the collection.
Declaration
public ProjectMember AddNew()
Returns
Type | Description |
---|---|
ProjectMember | A new instance of ProjectMember added to the collection. |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
CreateChild()
Create a new instance of ProjectMember
Declaration
protected override EntityBase CreateChild()
Returns
Type | Description |
---|---|
EntityBase | New instance of ProjectMember |
Overrides
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
CreateNew()
Create a new instance of the ProjectMemberCollection.
Declaration
public static ProjectMemberCollection CreateNew()
Returns
Type | Description |
---|---|
ProjectMemberCollection | A new instance of the ProjectMemberCollection. |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
GetFromCustomSearch(CustomSearch)
Create a new instance of the ProjectMemberCollection 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 ProjectMemberRow objects representing each row will be returned.
Declaration
public static ProjectMemberCollection GetFromCustomSearch(ProjectMemberCollection.CustomSearch query)
Parameters
Type | Name | Description |
---|---|---|
ProjectMemberCollection.CustomSearch | query | The custom search to execute against the database |
Returns
Type | Description |
---|---|
ProjectMemberCollection | A new instance of the ProjectMemberCollection object, reflecting the result of the query. |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
GetFromIdxContactId(int)
Create a new instance of the ProjectMemberRows object, and populate it with ProjectMemberRow objects based on the result of a query on the table ProjectMember. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static ProjectMemberCollection GetFromIdxContactId(int contactId)
Parameters
Type | Name | Description |
---|---|---|
int | contactId | contact_id of person (denormalisation!) |
Returns
Type | Description |
---|---|
ProjectMemberCollection | New ProjectMemberRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IDXPmembContact_id. Unique indexes have corresponding Create methods directly on the ProjectMemberRow object, since such indexes always return zero or one rows.
GetFromIdxPersonId(int)
Create a new instance of the ProjectMemberRows object, and populate it with ProjectMemberRow objects based on the result of a query on the table ProjectMember. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static ProjectMemberCollection GetFromIdxPersonId(int personId)
Parameters
Type | Name | Description |
---|---|---|
int | personId | person_id |
Returns
Type | Description |
---|---|
ProjectMemberCollection | New ProjectMemberRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IDXPmembPerson_id. Unique indexes have corresponding Create methods directly on the ProjectMemberRow object, since such indexes always return zero or one rows.
GetFromIdxProjectIdRank(int, short)
Create a new instance of the ProjectMemberRows object, and populate it with ProjectMemberRow objects based on the result of a query on the table ProjectMember. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static ProjectMemberCollection GetFromIdxProjectIdRank(int projectId, short rank)
Parameters
Type | Name | Description |
---|---|---|
int | projectId | Parent project |
short | rank | Rank in list (starts over for each project) |
Returns
Type | Description |
---|---|
ProjectMemberCollection | New ProjectMemberRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IProj_idRank. Unique indexes have corresponding Create methods directly on the ProjectMemberRow object, since such indexes always return zero or one rows.
Remove(ProjectMember)
Removes the given ProjectMember from the collection
Declaration
public void Remove(ProjectMember projectMember)
Parameters
Type | Name | Description |
---|---|---|
ProjectMember | projectMember | the ProjectMember to be removed |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
ToArray()
Link-table between person and project
Collection of ProjectMember. Each element of the collection represents one entity based on ProjectMember.Declaration
public ProjectMember[] ToArray()
Returns
Type | Description |
---|---|
ProjectMember[] |
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |
ToString()
For debugging: Number of members, and the first (up to) 5 items
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Remarks
Entity 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 SuperOffice.CRM.Rows.ProjectMember to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) ProjectMemberCollection ProjectMemberCollection.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 an EntityCollection 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.
Index fields | Nested index class name |
---|---|
ProjectmemberId | ProjectmemberId: Primary key Nested index class: ProjectMember.IdxProjectmemberIdStatic Get method: GetFromIdxProjectmemberId(int) |
Index fields | Nested index class name |
---|---|
PersonId | PersonId: person_id Nested index class: ProjectMemberCollection.IdxPersonIdStatic Get method: GetFromIdxPersonId(int) |
ContactId | ContactId: contact_id of person (denormalisation!) Nested index class: ProjectMemberCollection.IdxContactIdStatic Get method: GetFromIdxContactId(int) |
ProjectId, Rank | ProjectId: Parent project Rank:Rank in list (starts over for each project) Nested index class: ProjectMemberCollection.IdxProjectIdRankStatic Get method: GetFromIdxProjectIdRank(int, short) |