https://github.com/mongodb-developer/foodiefinder-csharp
A sample console application showing how to implement some of the new features available in the GA release of the MongoDB Provider for EF Core
https://github.com/mongodb-developer/foodiefinder-csharp
entity-framework entity-framework-core mongodb mongodb-atlas mongodb-database
Last synced: 4 months ago
JSON representation
A sample console application showing how to implement some of the new features available in the GA release of the MongoDB Provider for EF Core
- Host: GitHub
- URL: https://github.com/mongodb-developer/foodiefinder-csharp
- Owner: mongodb-developer
- License: apache-2.0
- Created: 2024-05-01T10:22:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-01T16:55:13.000Z (about 1 year ago)
- Last Synced: 2025-01-07T15:10:49.543Z (6 months ago)
- Topics: entity-framework, entity-framework-core, mongodb, mongodb-atlas, mongodb-database
- Language: C#
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Foodie Finder
This is a very basic demo .NET Console application, written using the new [MongoDB Provider for EF Core](https://github.com/mongodb/mongo-efcore-provider) that is now available in GA.
It gives examples of how to make use of some of the new features available in the GA release including:
* Support for embedded documents
* Use of Bson attributes such as [BsonElement("name")] and [BsonId]
* Value Converters
* Enhanced logging## Running the application
You will need the following to run the application:
* A MongoDB Atlas Cluster with the sample dataset loaded
* Your Connection String
* .NET 8This app relies on .NET User Secrets so you will need to add the following to your ```secrets.json``` file:
``` "MongoDBAtlasConnectionString": ""```
You can then start the application with
```bash
dotnet run
```## Useful Resources
The following are some useful resources including tutorials and documentation:
* [Getting Started with CRUD in the new Provider in a Blazor Application](https://www.mongodb.com/developer/languages/csharp/crud-changetracking-mongodb-provider-for-efcore/)
* [MongoDB Provider for EF Core GitHub Repo including Roadmap](https://github.com/mongodb/mongo-efcore-provider)
* [Documentation](https://www.mongodb.com/docs/entity-framework/current/)