AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageModuleEngine..::..GetPublishedObjectsBykeyLight<(Of <(<'T>)>)> Method (String, eComparison, DateTime, List<(Of <(<'String>)>)>, Boolean)

Performs an indexed search returning lightweight business objects populated only with the specified properties, filtered by a DateTime key value.

Namespace:  AdvantageCMS.Core.Common.Engine
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public List<T> GetPublishedObjectsBykeyLight<T>(
	string keyName,
	eComparison comparison,
	DateTime keyValue,
	List<string> fieldNames,
	bool includeSEO
)
where T : BusinessObject<T>, BusinessObject<T>, BusinessObject<T>, BusinessObject<T>, BusinessObject<T>, BusinessObject<T>, BusinessObject<T>

Type Parameters

T
A valid object inherited from BusinessObject.

Parameters

keyName
Type: String
The name of the index item to search.
comparison
Type: AdvantageCMS.Core.Common.Enums..::..eComparison
The type of comparison to execute.
keyValue
Type: DateTime
The DateTime comparison value.
fieldNames
Type: List<(Of <(<'String>)>)>
Optional list of property names to populate. If null, falls back to full object retrieval.
includeSEO
Type: Boolean
If set to true, includes SEO fields in the result.

Return Value

A list of lightweight business objects matching the criteria.