# Using LINQ to Query MongoDB in a .NET Core Application

DevFeed: [Using LINQ to Query MongoDB in a .NET Core Application](<https://devfeed.tech/articles/using-linq-to-query-mongodb-in-a-net-core-application-21814.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/04/using-linq-query-mongodb-dotnet-core-application/>)

Author: Nic Raboy

Published: 2022-04-06T13:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [net core](<https://devfeed.tech/topics/net-core.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [cli](<https://devfeed.tech/tags/cli.md>), [code](<https://devfeed.tech/tags/code.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [linq](<https://devfeed.tech/tags/linq.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [programming](<https://devfeed.tech/tags/programming.md>), [tutorials](<https://devfeed.tech/tags/tutorials.md>)

## AI overview

This tutorial demonstrates how to use LINQ in a .NET Core console application to query MongoDB documents. It covers replacing simple MongoDB queries and aggregation pipelines with C# LINQ syntax, using MongoDB Atlas, configuring the project, and selecting LINQ Version 3.

## Source excerpt

If you've been keeping up with my series of tutorials around .NET Core and MongoDB, you'll likely remember that we explored using the Find operator to query for documents as well as an aggregation pip... The post Using LINQ to Query MongoDB in a .NET Core Application appeared first on MongoDB.