Click or drag to resize
ObjectSourceTObject Class
Data query source which gets the data for specific object type
Inheritance Hierarchy
SystemObject
  CMS.BaseDisposableObject
    CMS.DataEngineAbstractQueryObject
      CMS.DataEngineQueryParametersBaseObjectSourceTObject
        CMS.DataEngineQuerySourceBaseObjectSourceTObject
          CMS.DataEngineObjectSourceBaseObjectSourceTObject
            CMS.DataEngineObjectSourceTObject

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public class ObjectSource<TObject> : ObjectSourceBase<ObjectSource<TObject>>
where TObject : new(), BaseInfo

Type Parameters

TObject

The ObjectSourceTObject type exposes the following members.

Constructors
Methods
  NameDescription
Public methodApplyParametersTo
Applies this where condition to the target object
(Inherited from QueryParametersBaseTParent.)
Public methodCallOnDispose
Adds the given action to the list of actions called when the handler object is disposed
(Inherited from DisposableObject.)
Public methodClone
Creates the clone of the object.
(Inherited from QueryParametersBaseTParent.)
Public methodCloneObject
Creates the clone of the object.
(Inherited from QueryParametersBaseTParent.)
Public methodCopyPropertiesTo
Copies all the object properties to the given target class
(Inherited from QueryParametersBaseTParent.)
Public methodDispose
Make sure the objects get disposed
(Inherited from DisposableObject.)
Public methodEnsureParameters
Ensures data parameters for the given query
(Inherited from QueryParametersBaseTParent.)
Public methodExpand
Expands the expression by replacing parameters with their values
(Inherited from QueryParametersBaseTParent.)
Public methodChanged
Marks the object as changed
(Inherited from AbstractQueryObject.)
Public methodImmutable
Makes this object instance is immutable, and next subsequent modification starts with a clone of the object.
(Inherited from QueryParametersBaseTParent.)
Public methodIncludeDataParameters
Adds the data parameters to the current query parameters
(Inherited from QueryParametersBaseTParent.)
Protected methodInitFromTypeT
Initializes the query from the given type
(Inherited from ObjectSourceBaseTSource.)
Public methodInnerJoin(String, IWhereCondition)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodInnerJoin(String, String)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodInnerJoin(String, String, String)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodInnerJoinTObject(String, String, IWhereCondition)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodJoin(String, IWhereCondition, JoinTypeEnum)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodJoin(String, String, JoinTypeEnum)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodJoin(String, String, String, IWhereCondition, JoinTypeEnum)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodJoinTObject(String, String, JoinTypeEnum, IWhereCondition)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodLeftJoin(String, IWhereCondition)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodLeftJoin(String, String)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodLeftJoin(String, String, String, IWhereCondition)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodLeftJoinTObject(String, String, IWhereCondition)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodLock
Locks the event on the given lock object. The context stays locked until the handler is disposed.
(Inherited from DisposableObject.)
Protected methodNewResult
Returns properly typed this
(Inherited from QueryParametersBaseTParent.)
Public methodReset
Flushes the results but leaves the generated query text unchanged. After the reset, query can be executed again to obtain new data.
(Inherited from AbstractQueryObject.)
Public methodRightJoin(String, IWhereCondition)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodRightJoin(String, String)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodRightJoin(String, String, String, IWhereCondition)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodRightJoinTObject(String, String, IWhereCondition)
Joins the given source with another
(Inherited from QuerySourceBaseTSource.)
Public methodSnapshot
Creates an immutable snapshot of the current query as a base for further evaluation. Doesn't modify the original query in any way.
(Inherited from QueryParametersBaseTParent.)
Public methodToString
Returns the string representation of the expression
(Inherited from QueryParametersBaseTParent.)
Public methodToString(Boolean)
Returns the string representation of the expression, with possibility of expanding parameters
(Inherited from QuerySourceBaseTSource.)
Protected methodTranslateSource
Translates the source to the final query expression
(Inherited from ObjectSourceBaseTSource.)
Protected methodTypeUpdated
Updates the query class name based on the current status
(Inherited from ObjectSourceBaseTSource.)
Public methodUsing
Adds the given object to the list of the allocated objects to dispose
(Inherited from DisposableObject.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
Properties
  NameDescription
Protected propertyClassName
Class name
(Inherited from ObjectSourceBaseTSource.)
Protected propertyIsImmutable
If true, this object instance is immutable, and next subsequent modification starts with a clone of the object.
(Inherited from QueryParametersBaseTParent.)
Protected propertyLeftSourceName
Left source name
(Inherited from QuerySourceBaseTSource.)
Public propertyName
Object name, empty by default
(Inherited from AbstractQueryObject.)
Protected propertyObject
Object instance of the specified type.
(Inherited from ObjectSourceBaseTSource.)
Public propertyObjectType
Returns the object type of the objects stored within the collection.
(Inherited from ObjectSourceBaseTSource.)
Public propertyParameters
Query data parameters
(Inherited from QueryParametersBaseTParent.)
Protected propertyRightSourceName
Left source name
(Inherited from QuerySourceBaseTSource.)
Public propertySourceExpression
Source expression
(Inherited from QuerySourceBaseTSource.)
Top
See Also