I use Entity Framework 6 Database First with Visual Studio 2015. Sometimes when I modify .edmx diagram and save changes, all .cs class(for tables) are deleting from code generation model.tt file and I could not make these return. Just for create Entity Data Model from zero, too.
Anybody know what is the reason of this problem, end how should I solve this?
Thanks any helps.
I have modified my entity data model with this:(Not know it can be the reason or other)
*EF5 Grdiview only Count & ReadOnly /After that open yourModel.tt file Find and replace the two occurrences of “ICollection” with “ObservableListSource” (lines 296 and 484). Find and replace the first occurrence of “HashSet” with “ObservableListSource” ( Line 50). Do not replace the second occurrence of HashSet found later in the code./*