Click or drag to resize

PFRelation_BaseObjectParentType, ChildType Class

Represents a collection of children objects of a particular object.

Important: all results obtained from this relation are filtered by RLS.

Inheritance Hierarchy
SystemObject
  Packflow.CorePFManagedObject
    Packflow.CorePFRelation
      Packflow.CorePFRelation_BaseObjectParentType, ChildType
        More...

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public abstract class PFRelation_BaseObject<ParentType, ChildType> : PFRelation
where ParentType : PFRelationalObject
where ChildType : PFBaseObject

Type Parameters

ParentType
ChildType

The PFRelation_BaseObjectParentType, ChildType type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the count of objects in the cache or query the database table with a global COUNT (using RLS).

Note : can be slow on large tables/permission sets.

Public propertyDateObjectCreation
Gets the date of the creation of this object in memory.
(Inherited from PFManagedObject.)
Public propertyLogger
Gets the logger, used to log any useful warning, error or information in the database.
(Inherited from PFManagedObject.)
Public propertyLogIdentification
Gets a technical text representing this object.
(Overrides PFManagedObjectLogIdentification.)
Public propertyParent
Gets the parent object of this relation, also considered as the parent object of this relation's children.
Public propertyParentObject
Gets the parent object of this relation, also considered as the parent object of this relation's children.
(Inherited from PFRelation.)
Public propertySite
Gets the PFSite hosting all objects concerned by this relation.
Top
Methods
  NameDescription
Protected methodAddChild
Creates a new instance of child object, not yet saved in database. Using the standard method CreateChildInstance.
Protected methodAddChild(PFRelation_BaseObjectParentType, ChildTypeCreateChildInstanceMethod)
Creates a new instance of child object, not yet saved in database. Using a custom method to create the object.
Protected methodChildPersistenceChanged
Method called when a child object is persisted (created) or unpersisted (deleted) from/in database.
Public methodGet(Guid)
Gets an object by its GUID.
Public methodGet(PFQuery)
Gets children objects by a given query.

Note: the query cannot contain any group or aggregation.

Public methodGet(PFQueryFilter)
Gets objects using multiple filters (separated by an AND operator).
Public methodGet(String, Object)
Gets all objects with a specific value.
Public methodGet(PFQueryFilter, PFQueryOrder)
Gets objects using a given filter and a given order.
Public methodGet(String, PFQueryFilterOperator, Object)
Gets all objects with a specific value.
Public methodGet(String, Object, String)
Gets all objects with a specific value, ordered by a given column.
Public methodGet(String, PFQueryFilterOperator, Object, String)
Gets all objects with a specific value, ordered by a given column.
Public methodGet(String, Object, String, Boolean)
Gets all objects with a specific value, ordered by a given column.
Public methodGet(String, PFQueryFilterOperator, Object, String, Boolean)
Gets all objects with a specific value, ordered by a given column.
Public methodGetAll
Gets all objects of this relation (filtered by RLS).
Public methodGetByGroup
Gets aggregated/grouped objects by a given query.

Note: the query must contain at least one group or aggregation.

(Overrides PFRelationGetByGroup(PFQuery).)
Public methodGetByGuid
Gets an object by its GUID.
Public methodGetByGuids(ListGuid)
Gets objects by their GUIDs. This is more optimized than calling GetByGuid multiple times.
Public methodGetByGuids(Guid)
Gets objects by their GUIDs.
Public methodGetById(Int64)
Gets a child object by its ID.
Public methodGetById(Int64, PFQueryResultsScope)
Gets a child object by its ID, with a specified scope. This method DOES NOT use the cache.
Public methodGetById(Int64, Boolean)
Gets a child object by its ID.
Public methodGetByIds(IEnumerableInt64)
Gets objects by their IDs.
Public methodGetByIds(Int64)
Gets objects by their IDs. This is more optimized than calling GetById multiple times.
Public methodGetChildrenType
Gets the type of objects available in this relation.
(Inherited from PFRelation.)
Public methodGetCount
Gets the count of objects with a global COUNT (with RLS).
Public methodGetCount(PFQueryNode)
Gets the count of objects with a global COUNT (with RLS).
Public methodGetObjectRelationName
Gets the name of the property in parent corresponding to this instance.
(Inherited from PFRelation.)
Public methodGetObjects
Gets children objects by a given query.

Note: the query cannot contain any group or aggregation.

(Overrides PFRelationGetObjects(PFQuery).)
Public methodGetOne(PFQuery)
Gets the first object returned by a given query.
Public methodGetOne(String, Object)
Gets the first object with a specific value.
Public methodGetOrderBy
Gets all available objects ordered by a given column.

Note: this method does not use cache.

Protected methodInitializeLogger
Gets a new logger, linked with the current object.
(Overrides PFManagedObjectInitializeLogger.)
Public methodIsDeleted
Checks if an object is deleted or not. If deleted, will also return suppression information.

If this object is not available because of RLS, this method will always return false.

Protected methodReloadObject
Reloads a new and up-to-date instance of an object (of this relation) from database.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also
Inheritance Hierarchy
SystemObject
  Packflow.CorePFManagedObject
    Packflow.CorePFRelation
      Packflow.CorePFRelation_BaseObjectParentType, ChildType
        Packflow.CorePFRelation_ApplicationContext
        Packflow.CorePFRelation_ApplicationItemEvent
        Packflow.CorePFRelation_ContentTypeExternalConnection
        Packflow.CorePFRelation_ContentTypeField
        Packflow.CorePFRelation_ContentTypeItem
        Packflow.CorePFRelation_Group
        Packflow.CorePFRelation_ItemComment
        Packflow.CorePFRelation_ItemEvent
        Packflow.CorePFRelation_ItemFile
        Packflow.CorePFRelation_ItemRelation
        Packflow.CorePFRelation_ItemSubscription
        Packflow.CorePFRelation_Log
        Packflow.CorePFRelation_PerformanceReportEntry
        Packflow.CorePFRelation_SiteActivityLog
        Packflow.CorePFRelation_SiteDashboard
        Packflow.CorePFRelation_SiteItemComment
        Packflow.CorePFRelation_SiteItemSubscription
        Packflow.CorePFRelation_SiteObjectLock
        Packflow.CorePFRelation_SiteOrganisationalType
        Packflow.CorePFRelation_SitePerformanceEntry
        Packflow.CorePFRelation_SitePerformanceReport
        Packflow.CorePFRelation_SiteRunningJob
        Packflow.CorePFRelation_SiteStoredProcedure
        Packflow.CorePFRelation_SiteTheme
        Packflow.CorePFRelation_SiteTimerJob
        Packflow.CorePFRelation_SiteUser
        Packflow.CorePFRelation_SiteUserIdentity
        Packflow.CorePFRelation_SiteUserNotification
        Packflow.CorePFRelation_StructureObjectParentType, ChildType
        Packflow.CorePFRelation_SubView
        Packflow.CorePFRelation_UserNavigationEntry
        Packflow.CorePFRelation_UserNotification
        Packflow.CorePFRelation_View