Closed nguyenquynhan closed 4 years ago
You can see detail my project https://github.com/nguyenquynhan/JoinMemoryListWithEF
Hi @nguyenquynhan, thanks for providing a sample project! That helps a lot! As I see MemJoin can't find QueryModelClass in DbContext metadata. Unfortunatlly since you use Database First approach simple adding DbSet<QueryModelClass>
property to DbContext
will not help. EF will not generate needed metadata. The only way I see is to add a NEW entity via designer. This entity type will be used for queries.
I did it like this (but you might want to add more properties to it and can name it differently):
Then used like this in code:
var memmoryCoach = context.FromLocalList(coachs, typeof(QueryModelClass2));
Please let me know if that helps.
Closed due to inactivity
I have setup as your example but it doesn't work for me, I got the error as below. Do you have any ideas about that?
Below is my code:
packages.config