[]
        
(Showing Draft Content)

C1.DataEngine.ClassFactory.CreateFromDataList

CreateFromDataList Method

CreateFromDataList(IDataList, string)

Creates a bindable collection of strongly typed objects from an IDataList instance.

Declaration
public static List<object> CreateFromDataList(IDataList list, string className = null)
Parameters
Type Name Description
IDataList list

A list of items that implements the IDataList interface.

string className

The name of the class to be generated for collection items. If null, "DynamicObject" is used.

Returns
Type Description
List<object>

A collection of strongly typed objects.

Remarks

The list parameter is typically derived from a call to GetTableData(string, int) (for base tables) or GetTableData(string, int) (for queries).