Why EntityFramework Migration does not read App.xaml.cs in WinUI 3? #8659
Unanswered
soroshsabz
asked this question in
Q&A
Replies: 1 comment
-
@codendone Did you have any idea about this? thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ITNOA
I have a WinUI 3 project using GenericHost (based on default WinUI 3 Visual Studio template)
I want to use EntityFramework Core and using Migration, but when I try to add migration like below
I got no erors, but EntityFramework does not create any migration files.
As you can see in details log, EntityFramework does not can find any classes and method.
How to resolve this?
Note: My full source code is https://github.com/soroshsabz/TestSolution
Update 7/11/2023
As @jeaninez-msft says in comment, to change migration command to
I retry migration, and anything does not work too. I attach new log below
Update 7/13/2023
My DbContext like below
This question ask in https://stackoverflow.com/q/76642800/1539100 too
Beta Was this translation helpful? Give feedback.
All reactions