Click here to Skip to main content
15,886,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted

1 solution

May be you can search on Google about "Dynamic class" on Silverlight.

Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900