Aspire with MongoDB and EFCore #8118
Unanswered
JohnnyDevCraft
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to get EFCore running with MongoDB in Aspire, but I'm hitting a wall.
First, It took some digging to figure out compatible versions:
Then I had to try and get a context wired up. I have a single entity:
... which is set up in a context using this extension:
And this is my Context Class:
All of this is utilizing Aspire for Connection Strings, and my builder code looks like this:
I can get the IMongoClient and the database, but when I call Ensure created it gives me the following error message:
I can't figure out what's causing the issue and I would love some advice.
Beta Was this translation helpful? Give feedback.
All reactions