AdvantageLayout..::..SetData Method
Populates the entity's properties from the result sets returned by the
stored procedure.
Namespace:
AdvantageCMS.Core.Common.BaseClassesAssembly: AdvantageCMS.Core (in AdvantageCMS.Core.dll)
Syntax
public void SetData( string commandName, IListSource resultSets )
Parameters
- commandName
- Type: String
The stored procedure name that produced the result sets. Use this to determine which columns to read and which properties to populate.
- resultSets
- Type: IListSource
The result sets returned by the stored procedure. Call [IListSource.GetList] to obtain an IList of rows, where each row is an IDictionary keyed by column name.
Remarks
Stored procedures may return multiple result sets. The first result set is accessed via resultSets.GetList(). Additional result sets (e.g. for related child records) can be accessed by casting to IList and indexing further.
Always check for null or empty result sets before accessing rows. Status and message columns (e.g. "Status", "Message") are commonly returned by insert/update procedures to indicate success or failure.

