c# - Adding columns to GridView without project compilation with using of Entity Framework 5.0 -
i want use ef 5.0 in application (.net 4.0 native application c#), cannot figure out how solve situation of adding new columns datagrid without project compilation , application update clients.
i can recent app behaviour this
i keep form columns in database. grid bind datatable load data database view. when user ask me add new column, change view (if possible), add new column columns table , user able see new column without application overwriting.
i know ef created managing entities (so no way dynamic properties), there way how use ef in same manner.
i trying somehow implement mvc pattern, maybe wrong.
i have
- model - ef,
- controller - form
- form class - grid dialog
- class adding, editing
when user wants add item grid in form sending controller reference dialog creating (editing) new item. controller has property actual actual entity.
this can works static number of columns in grid. if want have dynamic columns (generated database) have keep datatable data view , use ef dialog adding, editing. not combine 2 attitudes.
can suggest me how use ef (and load data anonymous entity??) , have dynamic columns feature grids?
thank advice
Comments
Post a Comment