[]
Creates a bindable collection of strongly typed objects from an IDataList instance.
public static List<object> CreateFromDataList(IDataList list, string className = null)
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. |
Type | Description |
---|---|
List<object> | A collection of strongly typed objects. |
The list
parameter is typically derived from a call to
GetTableData(string, int) (for base tables) or
GetTableData(string, int) (for queries).