Skip to content
This repository was archived by the owner on Aug 10, 2024. It is now read-only.
This repository was archived by the owner on Aug 10, 2024. It is now read-only.

Hangs on UseMongoDb #46

Description

@mrpmorris

I created a database named EFCoreTest and added the following user

db.createUser(
   {
     user: "x",
     pwd: passwordPrompt(),  // or cleartext password
     roles: [
        { role: "readWrite", db: "EFCoreTest" }
     ]
   }
 );

But my Console app freezes as soon as the UseMongoDb command is executed.

			var builder = new DbContextOptionsBuilder<AppDbContext>();
			var mongoUrl = new MongoUrlBuilder()
			{
				Server = new MongoServerAddress("127.0.0.1"),
				DatabaseName = "EFCoreTest",
				Username = "x",
				Password = "x"
			}.ToMongoUrl();
			builder.UseMongoDb(mongoUrl);

This is using Blueshift.EntityFrameworkCore.MongoDB-aleksamagicka 2.2.0-rtm-1 with EntityFrameworkCore 3.1.6 in a .NET Core 3.1 console app.

Do you have any suggestions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions