From a8f73fa5aaadf9b2f7acf9ba19191ce1daaf72ca Mon Sep 17 00:00:00 2001 From: Glen Date: Mon, 4 Nov 2024 16:18:33 +0200 Subject: [PATCH] Fixed MongoDB sample (#146) --- samples/MongoDb/UserRepository.cs | 1 + samples/MongoDb/UserRepositoryTests.cs | 1 + samples/MongoDb/UserRepositoryWithTransaction.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/samples/MongoDb/UserRepository.cs b/samples/MongoDb/UserRepository.cs index c253e40..b40dc7d 100644 --- a/samples/MongoDb/UserRepository.cs +++ b/samples/MongoDb/UserRepository.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Threading.Tasks; using MongoDB.Driver; +using MongoDB.Driver.Linq; using Squadron.Samples.Shared; namespace Squadron.Samples.Mongo diff --git a/samples/MongoDb/UserRepositoryTests.cs b/samples/MongoDb/UserRepositoryTests.cs index 235394d..8a49356 100644 --- a/samples/MongoDb/UserRepositoryTests.cs +++ b/samples/MongoDb/UserRepositoryTests.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.IO; +using System.Linq; using System.Threading.Tasks; using FluentAssertions; using MongoDB.Driver; diff --git a/samples/MongoDb/UserRepositoryWithTransaction.cs b/samples/MongoDb/UserRepositoryWithTransaction.cs index cd4be11..36536bf 100644 --- a/samples/MongoDb/UserRepositoryWithTransaction.cs +++ b/samples/MongoDb/UserRepositoryWithTransaction.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Threading.Tasks; using MongoDB.Driver; +using MongoDB.Driver.Linq; using Squadron.Samples.Shared; namespace Squadron.Samples.Mongo