Class ObjectSourceBase<TSource>
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Query source
public class ObjectSourceBase<TSource> : QuerySourceBase<TSource>, IQueryParameters<TSource>, IQuerySource, IQueryParameters, IQueryObject where TSource : ObjectSourceBase<TSource>, new()
Type Parameters
TSource
- Inheritance
-
objectQueryParametersBase<TSource>QuerySourceBase<TSource>ObjectSourceBase<TSource>
- Implements
-
IQueryParameters<TSource>
- Derived
- Inherited Members
- Extension Methods
Constructors
ObjectSourceBase()
Constructor
public ObjectSourceBase()
ObjectSourceBase(string)
Constructor
public ObjectSourceBase(string objectType)
Parameters
objectType
stringObject type
Fields
mObject
Object instance of specified type.
protected BaseInfo mObject
Field Value
mObjectType
Object type.
protected string mObjectType
Field Value
- string
Properties
ClassName
Class name
protected string ClassName { get; set; }
Property Value
- string
Object
Object instance of the specified type.
protected BaseInfo Object { get; set; }
Property Value
ObjectType
Returns the object type of the objects stored within the collection.
public string ObjectType { get; set; }
Property Value
- string
Methods
InitFromType<T>()
Initializes the query from the given type
protected void InitFromType<T>() where T : BaseInfo, new()
Type Parameters
T
TranslateSource(QuerySourceTable)
Translates the source to the final query expression
protected override void TranslateSource(QuerySourceTable source)
Parameters
source
QuerySourceTableSource table
TypeUpdated()
Updates the query class name based on the current status
protected virtual void TypeUpdated()