Open kavhad opened 7 years ago
I noticed these comment lines in the file MetaDatahandler.cs:
// Note that complex types can't be nested (ref http://stackoverflow.com/a/20332503/10245 ) // so it's safe to not recurse even though the data model suggests you should have to.
So this is by design, but there's no such limitation at least not in EF version 6.1.3, nested complex types are valid and works like expected. The limitation is with relational properties within complex types.
Would you be able to write a unit test & fix? Then do a PR? Or if not I could do it on a consultancy basis. Is it causing you a problem with your code/business?
I'll try to do a fix for it myself and do a PR.
Thanks for everything you've put into it already.
Cool. You're welcome!
In a case where a complex type is a subproperty within a complex type, then running EnumToLookup.GenerateMigrationSql(...) seems to ignore the enum property. The following code describes the case