문제

I added a model (.edmx file) for an existing database. The code in the Model1.Designer.cs file is not generated. Tell me, please, what are the ways to solve this problem exist for version 6.

Workaround similar problem to version 5 does not work, because the required properties of the new generator is not available.

Workaround:

Change the value of the 'Code Generation Strategy' designer property to 'Legacy ObjectContext'.

not worked because this is proberty is disabled in property editor.

what am I doing wrong?

I am sorry, my pictures are not added:

도움이 되었습니까?

해결책

If you are using EF6 the only available code generation method is T4 templates. If you want to use ObjectContext instead of DbContext you need to get T4 templates that generate ObjectContext based context. You can get them from here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top