Show / Hide Table of Contents

Class SelectionCollection

Selection tab

Collection of Selection. Each element of the collection represents one entity based on Selection.
Inheritance
object
NestedPersist
NestedPersistFacade
NestedCollectionPersist
EntityCollectionBase
SelectionCollection
Implements
INestedPersist
IEnumerable<INestedPersist>
INotifyCollectionChanged
IBindingList
IList
ICollection
IEnumerable
Inherited Members
EntityCollectionBase._innerList
EntityCollectionBase.DeleteAsync()
EntityCollectionBase.GetEnumerator()
EntityCollectionBase.Add(EntityBase)
EntityCollectionBase.Remove(EntityBase)
EntityCollectionBase.CopyTo(Array, int)
EntityCollectionBase.IndexOf(object)
EntityCollectionBase.Contains(object)
EntityCollectionBase.AddIndex(PropertyDescriptor)
EntityCollectionBase.ApplySort(PropertyDescriptor, ListSortDirection)
EntityCollectionBase.Find(PropertyDescriptor, object)
EntityCollectionBase.RemoveIndex(PropertyDescriptor)
EntityCollectionBase.RemoveSort()
EntityCollectionBase.IsDirty
EntityCollectionBase.Count
EntityCollectionBase.IsFixedSize
EntityCollectionBase.IsReadOnly
EntityCollectionBase.AllowEdit
EntityCollectionBase.AllowNew
EntityCollectionBase.AllowRemove
EntityCollectionBase.IsSorted
EntityCollectionBase.SortDirection
EntityCollectionBase.SortProperty
EntityCollectionBase.SupportsChangeNotification
EntityCollectionBase.SupportsSearching
EntityCollectionBase.SupportsSorting
EntityCollectionBase.CollectionChanged
EntityCollectionBase.ListChanged
NestedCollectionPersist.GetFacadingItems()
NestedCollectionPersist.IsDeleted
NestedPersistFacade.OnPreIdUpdateAsync()
NestedPersistFacade.OnPrimaryKeyRequestAsync(PKContainer)
NestedPersistFacade.OnPrimaryKeyUpdateAsync(PKContainer)
NestedPersistFacade.OnIdUpdateAsync()
NestedPersistFacade.OnSaveAsync(BatchSave)
NestedPersistFacade.OnSavedAsync(bool)
NestedPersist._saveOwner
NestedPersist._isSaving
NestedPersist.SetSaveOwner(INestedPersist)
NestedPersist.SaveAsync()
NestedPersist.IsSaving
NestedPersist.IsMarkedForDelete
NestedPersist.OnElementSaved
NestedPersist.OnElementIdUpdate
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public class SelectionCollection : EntityCollectionBase, INestedPersist, IEnumerable<INestedPersist>, 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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

Constructors

SelectionCollection(SelectionCollectionIdx)

Constructor for class SelectionCollection.
This object represents a collection of rows in table 'selection'. Table contact: Selections

Declaration
protected SelectionCollection(SelectionCollection.SelectionCollectionIdx idx)
Parameters
Type Name Description
SelectionCollection.SelectionCollectionIdx 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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

Fields

_idx

Fetcher class the collection is based on

Declaration
protected SelectionCollection.SelectionCollectionIdx _idx
Field Value
Type Description
SelectionCollection.SelectionCollectionIdx
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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

_rows

Row objects that the collection is based on.

Declaration
protected SelectionRows _rows
Field Value
Type Description
SelectionRows
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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

Properties

Index

Retrieve the index for SelectionCollection

Declaration
public SelectionCollection.SelectionCollectionIdx Index { get; }
Property Value
Type Description
SelectionCollection.SelectionCollectionIdx
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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

this[int]

Get a Selection from the collection from its zero-based index.

Declaration
public Selection this[int index] { get; }
Parameters
Type Name Description
int index

Zero-based index in the collection.

Property Value
Type Description
Selection
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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

Rows

The ecapsulated object SelectionRows.

Declaration
public SelectionRows Rows { get; }
Property Value
Type Description
SelectionRows
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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

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
EntityCollectionBase.Sentries
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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

Methods

Add(Selection)

Add one Selection to the collection.

Declaration
public int Add(Selection selection)
Parameters
Type Name Description
Selection selection

An instance of Selection to be added to the collection.

Returns
Type Description
int

The index of the added Selection.

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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

AddNew()

Get a new instance of Selection added to the collection.

Declaration
public Selection AddNew()
Returns
Type Description
Selection

A new instance of Selection 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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

CreateChild()

Create a new instance of Selection

Declaration
protected override EntityBase CreateChild()
Returns
Type Description
EntityBase

New instance of Selection

Overrides
EntityCollectionBase.CreateChild()
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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

CreateNew()

Create a new instance of the SelectionCollection.

Declaration
public static SelectionCollection CreateNew()
Returns
Type Description
SelectionCollection

A new instance of the SelectionCollection.

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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

GetFromCustomSearchAsync(CustomSearch, CancellationToken)

Create a new instance of the SelectionCollection 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 SelectionRow objects representing each row will be returned.

Declaration
public static Task<SelectionCollection> GetFromCustomSearchAsync(SelectionCollection.CustomSearch query, CancellationToken cancellationToken = default)
Parameters
Type Name Description
SelectionCollection.CustomSearch query

The custom search to execute against the database

CancellationToken cancellationToken
Returns
Type Description
Task<SelectionCollection>

A new instance of the SelectionCollection 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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

GetFromIdxAssociateIdAsync(int, CancellationToken)

Create a new instance of the SelectionRows object, and populate it with SelectionRow objects based on the result of a query on the table Selection. This method is intended to make it easy to use efficient queries that match a database index.

Declaration
public static Task<SelectionCollection> GetFromIdxAssociateIdAsync(int associateId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int associateId

Can also represent other types of owner

CancellationToken cancellationToken
Returns
Type Description
Task<SelectionCollection>

New SelectionRows 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 IDXSelAssoc_id. Unique indexes have corresponding Create methods directly on the SelectionRow object, since such indexes always return zero or one rows.

GetFromIdxGroupIdxAsync(int, CancellationToken)

Create a new instance of the SelectionRows object, and populate it with SelectionRow objects based on the result of a query on the table Selection. This method is intended to make it easy to use efficient queries that match a database index.

Declaration
public static Task<SelectionCollection> GetFromIdxGroupIdxAsync(int groupIdx, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int groupIdx

Link to group

CancellationToken cancellationToken
Returns
Type Description
Task<SelectionCollection>

New SelectionRows 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 IDXSelGrp_idx. Unique indexes have corresponding Create methods directly on the SelectionRow object, since such indexes always return zero or one rows.

GetFromIdxNameAsync(string, CancellationToken)

Create a new instance of the SelectionRows object, and populate it with SelectionRow objects based on the result of a query on the table Selection. This method is intended to make it easy to use efficient queries that match a database index.

Declaration
public static Task<SelectionCollection> GetFromIdxNameAsync(string name, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string name

Selection name, freetext indexed

CancellationToken cancellationToken
Returns
Type Description
Task<SelectionCollection>

New SelectionRows 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 IDXSelName. Unique indexes have corresponding Create methods directly on the SelectionRow object, since such indexes always return zero or one rows.

GetFromIdxSoundExAsync(string, CancellationToken)

Create a new instance of the SelectionRows object, and populate it with SelectionRow objects based on the result of a query on the table Selection. This method is intended to make it easy to use efficient queries that match a database index.

Declaration
public static Task<SelectionCollection> GetFromIdxSoundExAsync(string soundEx, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string soundEx

What the name sounds like, for duplicate detection

CancellationToken cancellationToken
Returns
Type Description
Task<SelectionCollection>

New SelectionRows 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 IDXSelSoundEx. Unique indexes have corresponding Create methods directly on the SelectionRow object, since such indexes always return zero or one rows.

GetFromIdxSourceAsync(short, CancellationToken)

Create a new instance of the SelectionRows object, and populate it with SelectionRow objects based on the result of a query on the table Selection. This method is intended to make it easy to use efficient queries that match a database index.

Declaration
public static Task<SelectionCollection> GetFromIdxSourceAsync(short source, CancellationToken cancellationToken = default)
Parameters
Type Name Description
short source

How did we get this selection? For future integration needs

CancellationToken cancellationToken
Returns
Type Description
Task<SelectionCollection>

New SelectionRows 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 IDXSelSource. Unique indexes have corresponding Create methods directly on the SelectionRow object, since such indexes always return zero or one rows.

Remove(Selection)

Removes the given Selection from the collection

Declaration
public void Remove(Selection selection)
Parameters
Type Name Description
Selection selection

the Selection 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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

ToArray()

Selection tab

Collection of Selection. Each element of the collection represents one entity based on Selection.
Declaration
public Selection[] ToArray()
Returns
Type Description
Selection[]
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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

ToString()

For debugging: Number of members, and the first (up to) 5 items

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()
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.Selection to it, and use methods like Save to operate on the whole collection.
  • You can create a (nested) SelectionCollection SelectionCollection.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 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.
Unique indexes are handled through the Selection object directly, which has nested classes and GetFromIdx methods for each unique index.

Unique indexes on table Selection are:
Index fieldsNested index class name
SelectionIdSelectionId:

Primary key

Nested index class: Selection.IdxSelectionId

Static Get method: GetFromIdxSelectionIdAsync(int, CancellationToken)
Non-unique indexes on table Selection are:
Index fieldsNested index class name
NameName:

Selection name, freetext indexed

Nested index class: SelectionCollection.IdxName

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxName
AssociateIdAssociateId:

Can also represent other types of owner

Nested index class: SelectionCollection.IdxAssociateId

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxAssociateId
SoundExSoundEx:

What the name sounds like, for duplicate detection

Nested index class: SelectionCollection.IdxSoundEx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSoundEx
GroupIdxGroupIdx:

Link to group

Nested index class: SelectionCollection.IdxGroupIdx

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxGroupIdx
SourceSource:

How did we get this selection? For future integration needs

Nested index class: SelectionCollection.IdxSource

Static Get method: SuperOffice.CRM.Entities.SelectionCollection.GetFromIdxSource

Implements

INestedPersist
IEnumerable<T>
INotifyCollectionChanged
IBindingList
IList
ICollection
IEnumerable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top