PFRelation_BaseObjectParentType, ChildType Class |
Important: all results obtained from this relation are filtered by RLS.
Namespace: Packflow.Core
public abstract class PFRelation_BaseObject<ParentType, ChildType> : PFRelation where ParentType : PFRelationalObject where ChildType : PFBaseObject
The PFRelation_BaseObjectParentType, ChildType type exposes the following members.
Name | Description | |
---|---|---|
![]() | Count |
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. |
![]() | DateObjectCreation |
Gets the date of the creation of this object in memory.
(Inherited from PFManagedObject.) |
![]() | Logger |
Gets the logger, used to log any useful warning, error or information in the database.
(Inherited from PFManagedObject.) |
![]() | LogIdentification |
Gets a technical text representing this object.
(Overrides PFManagedObjectLogIdentification.) |
![]() | Parent |
Gets the parent object of this relation, also considered as the parent object of this relation's children.
|
![]() | ParentObject |
Gets the parent object of this relation, also considered as the parent object of this relation's children.
(Inherited from PFRelation.) |
![]() | Site |
Gets the PFSite hosting all objects concerned by this relation.
|
Name | Description | |
---|---|---|
![]() | AddChild |
Creates a new instance of child object, not yet saved in database.
Using the standard method CreateChildInstance.
|
![]() | AddChild(PFRelation_BaseObjectParentType, ChildTypeCreateChildInstanceMethod) |
Creates a new instance of child object, not yet saved in database.
Using a custom method to create the object.
|
![]() | ChildPersistenceChanged |
Method called when a child object is persisted (created) or unpersisted (deleted) from/in database.
|
![]() | Get(Guid) |
Gets an object by its GUID.
|
![]() | Get(PFQuery) |
Gets children objects by a given query.
Note: the query cannot contain any group or aggregation. |
![]() | Get(PFQueryFilter) |
Gets objects using multiple filters (separated by an AND operator).
|
![]() | Get(String, Object) |
Gets all objects with a specific value.
|
![]() | Get(PFQueryFilter, PFQueryOrder) |
Gets objects using a given filter and a given order.
|
![]() | Get(String, PFQueryFilterOperator, Object) |
Gets all objects with a specific value.
|
![]() | Get(String, Object, String) |
Gets all objects with a specific value, ordered by a given column.
|
![]() | Get(String, PFQueryFilterOperator, Object, String) |
Gets all objects with a specific value, ordered by a given column.
|
![]() | Get(String, Object, String, Boolean) |
Gets all objects with a specific value, ordered by a given column.
|
![]() | Get(String, PFQueryFilterOperator, Object, String, Boolean) |
Gets all objects with a specific value, ordered by a given column.
|
![]() | GetAll |
Gets all objects of this relation (filtered by RLS).
|
![]() | GetByGroup |
Gets aggregated/grouped objects by a given query.
(Overrides PFRelationGetByGroup(PFQuery).)Note: the query must contain at least one group or aggregation. |
![]() | GetByGuid |
Gets an object by its GUID.
|
![]() | GetByGuids(ListGuid) |
Gets objects by their GUIDs.
This is more optimized than calling GetByGuid multiple times.
|
![]() | GetByGuids(Guid) |
Gets objects by their GUIDs.
|
![]() | GetById(Int64) |
Gets a child object by its ID.
|
![]() | GetById(Int64, PFQueryResultsScope) |
Gets a child object by its ID, with a specified scope.
This method DOES NOT use the cache.
|
![]() | GetById(Int64, Boolean) |
Gets a child object by its ID.
|
![]() | GetByIds(IEnumerableInt64) |
Gets objects by their IDs.
|
![]() | GetByIds(Int64) |
Gets objects by their IDs.
This is more optimized than calling GetById multiple times.
|
![]() | GetChildrenType |
Gets the type of objects available in this relation.
(Inherited from PFRelation.) |
![]() | GetCount |
Gets the count of objects with a global COUNT (with RLS).
|
![]() | GetCount(PFQueryNode) |
Gets the count of objects with a global COUNT (with RLS).
|
![]() | GetObjectRelationName |
Gets the name of the property in parent corresponding to this instance.
(Inherited from PFRelation.) |
![]() | GetObjects |
Gets children objects by a given query.
(Overrides PFRelationGetObjects(PFQuery).)Note: the query cannot contain any group or aggregation. |
![]() | GetOne(PFQuery) |
Gets the first object returned by a given query.
|
![]() | GetOne(String, Object) |
Gets the first object with a specific value.
|
![]() | GetOrderBy |
Gets all available objects ordered by a given column.
Note: this method does not use cache. |
![]() | InitializeLogger |
Gets a new logger, linked with the current object.
(Overrides PFManagedObjectInitializeLogger.) |
![]() | IsDeleted |
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. |
![]() | ReloadObject |
Reloads a new and up-to-date instance of an object (of this relation) from database.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) |
![]() | EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) |
![]() | EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) |
![]() | GetString |
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) |
![]() | IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) |
![]() | IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) |
![]() | Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) |
![]() | Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) |
![]() | SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |
![]() | SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |
![]() | SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |