Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 matches found for property .... #59

Open
ADringer opened this issue Aug 25, 2017 · 1 comment
Open

0 matches found for property .... #59

ADringer opened this issue Aug 25, 2017 · 1 comment
Labels

Comments

@ADringer
Copy link

Hi,

I've added the following code to the seed method (as per the docs):

var enumToLookup = new EnumToLookup(); enumToLookup.Apply(context);

But when running it I get the exception:

0 matches found for property SolutionType

Not too sure what this means, any tips?

Thanks

@dvankuren
Copy link

In case anyone else runs into this, I've tracked it down to being an issue with entities represented by an abstract class that has an enum property on it. It looks like we get the mapping fragments from the derived class, which doesn't include the base class properties. I honestly didn't spend a lot of time on it because I have other commitments, but for anyone that is interested, in MetaDataHandler.FindEnumReferences, you can change:

foreach (var entityType in entities)

To:

foreach (var entityType in entities.Where(e => !e.Abstract))

@timabell timabell added the bug label Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants