Can generate "entity class" dynamically ? Is there such examples?
Description:
There is a entity class "TableList", it's properties is dynamic generation. It should be accurate say , the number of its properties is dynamic.
1, Providing parameters "ColumnCount", according to it specified the "TableList properties" number.
2, If "ColumnCount" is "2", then entity class "TableList" there is attribute "Column1", "Column2".
3, If "ColumnCount" is "3", then entity class "TableList" there is attribute "Column1", "Column2","Column3".
4, If "ColumnCount" is "4", then entity class "TableList" there is attribute "Column1", "Column2","Column3","Column4".
5,So on.
So on purpose:
Mainly is to solve the problem of "DataGrid" binding. Wanting the "column number" of "entity set" which binds to "DataGrid" can be dynamic.