Dynamic entity in EF1/change model in runtime/add property dynamicaly

前端 未结 2 1851
感动是毒
感动是毒 2021-01-21 23:38

I want to give users the possibility to dynamically add new columns at the runtime. I am using the Entity framework v1 ...

I did manage to read as xml and then change ss

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-21 23:51

    In v1, you would need to generate a new assembly. This would also require redistributing EdmGen. I don't know if that's legal.

    In EF v4, you could probably combine C# dynamic types with code-only modeling and come up with a pretty slick solution to your problem.

提交回复
热议问题