Show / Hide Table of Contents

Class ActivityLinksHelper

Helper class for links to activite

Inheritance
Object
NestedPersist
NestedPersistFacade
EntityDetailsHelper<TableRowBase, RelationsRow>
LinksHelper
ActivityLinksHelper
Implements
INestedPersist
Inherited Members
LinksHelper.AddLink(TableRowBase, String)
LinksHelper.AddLink(TableInfo, Int32, String)
LinksHelper.AddLink(Int16, Int32, String)
LinksHelper.AddSimilarLink(RelationsRow)
LinksHelper.DeleteSimilarLink(RelationsRow)
LinksHelper.EditSimilarLink(RelationsRow)
LinksHelper.GetLinks()
LinksHelper.CopyTo(LinksHelper)
LinksHelper.OnChildPreIdUpdate(TableRowBase, RelationsRow, Boolean)
LinksHelper.OnChildIdUpdate(TableRowBase, RelationsRow, Boolean)
LinksHelper.LoadChildItems(TableRowBase)
LinksHelper.IsSameChild(RelationsRow, RelationsRow)
LinksHelper.hasChanged(RelationsRow, RelationsRow)
LinksHelper.SourceTableId
LinksHelper.IsDeleted
EntityDetailsHelper<TableRowBase, RelationsRow>.add_OnEntityDetailsHelperAdded(EntityDetailsHelperModified<TableRowBase, RelationsRow>)
EntityDetailsHelper<TableRowBase, RelationsRow>.remove_OnEntityDetailsHelperAdded(EntityDetailsHelperModified<TableRowBase, RelationsRow>)
EntityDetailsHelper<TableRowBase, RelationsRow>.add_OnEntityDetailsHelperRemoved(EntityDetailsHelperModified<TableRowBase, RelationsRow>)
EntityDetailsHelper<TableRowBase, RelationsRow>.remove_OnEntityDetailsHelperRemoved(EntityDetailsHelperModified<TableRowBase, RelationsRow>)
EntityDetailsHelper<TableRowBase, RelationsRow>.add_OnEntityDetailsHelperEdited(EntityDetailsHelperModified<TableRowBase, RelationsRow>)
EntityDetailsHelper<TableRowBase, RelationsRow>.remove_OnEntityDetailsHelperEdited(EntityDetailsHelperModified<TableRowBase, RelationsRow>)
EntityDetailsHelper<TableRowBase, RelationsRow>.Add(RelationsRow)
EntityDetailsHelper<TableRowBase, RelationsRow>.Remove(RelationsRow)
EntityDetailsHelper<TableRowBase, RelationsRow>.Edit(RelationsRow)
EntityDetailsHelper<TableRowBase, RelationsRow>.SetChildren(RelationsRow[])
EntityDetailsHelper<TableRowBase, RelationsRow>.FindChildInItems(RelationsRow)
EntityDetailsHelper<TableRowBase, RelationsRow>.IsSameChild(RelationsRow, RelationsRow)
EntityDetailsHelper<TableRowBase, RelationsRow>.hasChanged(RelationsRow, RelationsRow)
EntityDetailsHelper<TableRowBase, RelationsRow>.GetFacadingItems()
EntityDetailsHelper<TableRowBase, RelationsRow>.OnPreIdUpdate()
EntityDetailsHelper<TableRowBase, RelationsRow>.OnIdUpdate()
EntityDetailsHelper<TableRowBase, RelationsRow>.OnSaved(Boolean)
EntityDetailsHelper<TableRowBase, RelationsRow>.OnParentPreIdUpdate(TableRowBase)
EntityDetailsHelper<TableRowBase, RelationsRow>.OnChildPreIdUpdate(TableRowBase, RelationsRow, Boolean)
EntityDetailsHelper<TableRowBase, RelationsRow>.OnParentIdUpdate(TableRowBase)
EntityDetailsHelper<TableRowBase, RelationsRow>.OnChildIdUpdate(TableRowBase, RelationsRow, Boolean)
EntityDetailsHelper<TableRowBase, RelationsRow>.LoadChildItems(TableRowBase)
EntityDetailsHelper<TableRowBase, RelationsRow>.Items
EntityDetailsHelper<TableRowBase, RelationsRow>.RemovedItems
EntityDetailsHelper<TableRowBase, RelationsRow>.Parent
EntityDetailsHelper<TableRowBase, RelationsRow>.Children
EntityDetailsHelper<TableRowBase, RelationsRow>.IsDirty
EntityDetailsHelper<TableRowBase, RelationsRow>.OnEntityDetailsHelperAdded
EntityDetailsHelper<TableRowBase, RelationsRow>.OnEntityDetailsHelperRemoved
EntityDetailsHelper<TableRowBase, RelationsRow>.OnEntityDetailsHelperEdited
NestedPersistFacade.OnPrimaryKeyUpdate(PKContainer)
NestedPersistFacade.OnIdUpdate()
NestedPersistFacade.OnSave(BatchSave)
NestedPersistFacade.IsDirty
NestedPersist._saveOwner
NestedPersist._isSaving
NestedPersist.SetSaveOwner(INestedPersist)
NestedPersist.Save()
NestedPersist.INestedPersist.OnPreIdUpdate()
NestedPersist.INestedPersist.OnPrimaryKeyRequest(PKContainer)
NestedPersist.INestedPersist.OnPrimaryKeyUpdate(PKContainer)
NestedPersist.INestedPersist.OnIdUpdate()
NestedPersist.INestedPersist.OnSave(BatchSave)
NestedPersist.INestedPersist.OnSaved(Boolean)
NestedPersist.add_OnElementSaved(OnSaved)
NestedPersist.remove_OnElementSaved(OnSaved)
NestedPersist.add_OnElementIdUpdate(OnIdUpdate)
NestedPersist.remove_OnElementIdUpdate(OnIdUpdate)
NestedPersist.IsSaving
NestedPersist.IsMarkedForDelete
NestedPersist.OnElementSaved
NestedPersist.OnElementIdUpdate
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public sealed class ActivityLinksHelper : LinksHelper, INestedPersist

Constructors

ActivityLinksHelper(TableRowBase, TableRowBase)

Default constructor setting the activity link source info

Declaration
public ActivityLinksHelper(TableRowBase sourceEntityRow, TableRowBase activeLinksRow)
Parameters
Type Name Description
TableRowBase sourceEntityRow

The row object of the source entity

TableRowBase activeLinksRow

Methods

AddAppointmentLink(AppointmentRow)

Adds a link to an existing appointment

Declaration
public RelationsRow AddAppointmentLink(AppointmentRow row)
Parameters
Type Name Description
AppointmentRow row

The appointment that is linked to

Returns
Type Description
RelationsRow

The new link

AddDocumentLink(DocumentRow)

Adds a link to an existing document

Declaration
public RelationsRow AddDocumentLink(DocumentRow row)
Parameters
Type Name Description
DocumentRow row

The document that is linked to

Returns
Type Description
RelationsRow

The new link

AddLinks(RelationsRows)

Adds link relations to the entity. If the source does not match the LinkHelper source an exception is thrown.

Declaration
public override RelationsRows AddLinks(RelationsRows relationsRows)
Parameters
Type Name Description
RelationsRows relationsRows

Collection Relations Rows to save

Returns
Type Description
RelationsRows

The saved RelationsRows

Overrides
LinksHelper.AddLinks(RelationsRows)

AddSaleLink(SaleRow)

Adds a link to an existing sale

Declaration
public RelationsRow AddSaleLink(SaleRow row)
Parameters
Type Name Description
SaleRow row

The sale that is linked to

Returns
Type Description
RelationsRow

The new link

DeleteLinks(Int32[])

Deletes the links if the link belongs to the source entity

Declaration
public override void DeleteLinks(params int[] linkIds)
Parameters
Type Name Description
Int32[] linkIds
Overrides
LinksHelper.DeleteLinks(Int32[])

GetFacadingItems()

Helper class for links to activite

Declaration
protected override IEnumerable<INestedPersist> GetFacadingItems()
Returns
Type Description
IEnumerable<INestedPersist>
Overrides
SuperOffice.CRM.Entities.EntityDetailsHelper<SuperOffice.CRM.Rows.TableRowBase, SuperOffice.CRM.Rows.RelationsRow>.GetFacadingItems()

OnPreIdUpdate()

Helper class for links to activite

Declaration
protected override void OnPreIdUpdate()
Overrides
SuperOffice.CRM.Entities.EntityDetailsHelper<SuperOffice.CRM.Rows.TableRowBase, SuperOffice.CRM.Rows.RelationsRow>.OnPreIdUpdate()

OnPrimaryKeyRequest(PKContainer)

Force a primary key request to set the sqltype of the target row, even if it is not actually a full member of our nestedpersist tree

Declaration
protected override void OnPrimaryKeyRequest(PKContainer pkContainer)
Parameters
Type Name Description
PKContainer pkContainer
Overrides
NestedPersistFacade.OnPrimaryKeyRequest(PKContainer)

OnSaved(Boolean)

Helper class for links to activite

Declaration
protected override void OnSaved(bool bSucceeded)
Parameters
Type Name Description
Boolean bSucceeded
Overrides
SuperOffice.CRM.Entities.EntityDetailsHelper<SuperOffice.CRM.Rows.TableRowBase, SuperOffice.CRM.Rows.RelationsRow>.OnSaved(System.Boolean)

SetLinks(RelationsRows)

Sets link relations to the entity. Existing relations are deleted or updated If the source does not match the LinkHelper source an exception is thrown.

Declaration
public override void SetLinks(RelationsRows relationsRows)
Parameters
Type Name Description
RelationsRows relationsRows

Collection of Relation Rows to save

Overrides
LinksHelper.SetLinks(RelationsRows)

Implements

INestedPersist

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