Migration breaks with Owned Entity Types #2
When creating a new migration that uses owned entity types, it will internally crash with an error similar to
It's taken me a bit of time to narrow it down the issue to this extension because I was wrongly assuming that it had to do with our non-standard EF core configuration.
Anyway, I have added a simple way to reproduce the issue in my own fork
It consists in a simple
The hacky workaround that I'm currently using is to skip owned types in the
This makes the tests succeed, but it results in ignoring any [Index] flags that might have been added to the owned type itself.
I'd love to come up with a PR that adds support for owned types, but I'm really struggling for time at the moment.
By the way, thanks very much for creating this library in the first place. It's been so helpful! :)
@jsancho Thank you for your reporting!
I tried to resolve this issue, at the feature/owned-types-support branch.
It looks working fine for me. (See also results of unit test on AppVayor.)
I would like to release the new version that will be merged from the feature/owned-types-support branch after few days, if there are no more problems.
You can try this package if you prefer.
It's not only a matter of fixing the previous crash, but you've also added full support for the [Index] attribute within Owned Types.
I've reintroduced the nuget package in our project, and it's all worked right away.
Thanks so much for your help, very impressed with your effort!
I published the package of release build.
Thank you for your contribution, @jsancho !