How to convet DataTable to List on runtype with out existin class property [closed]
- by shamim
Work on VS2010 C#,Have one DataTable ,want to convert this DataTable to List
Suppose:
Table dt;
On run time want to create similar field from a datatable and fill fields in List.There is no existing class for list properties.
ListName=TableName
List property name=Table column name
List Property type=Table column type
List items=Table rows
Note: Recently work on EF.To fullfill my project requirement, need to give flexibility to use to input and execute ESQL at runtime .I don’t want to put this execute result on datatable or List ,want to put this result on list.
List has no existing class and property,don’t want to convert DataTable on list Type:DataRow
If have any query please ask,Thanks in advanced.