DEV Community

Cover image for CRUD with .NET5 Web API and RavenDB
Assis Zang
Assis Zang

Posted on • Edited on

1

CRUD with .NET5 Web API and RavenDB

Recently I met RavenDB, a NoSQL database that has some differences compared to the famous MongoDB such as its construction made in C#, its creator Oren Eini is a great contributor to the .NET community, its ease of installation and handling and its beautiful user interface.

Based on these attributes, I decided to invest a little time to learn more about this NoSQL database, which already has 10 years of existence and can easily face one of the best known NoSQL databases today.

For that I created a very simple project, an API in .NET 5 with Visual Studio 2019 (You can use VS Code if you prefer) I installed the RavenDB client and then created the database connection and the methods for CRUD.
An interesting detail is that with RavenDB you can insert new data or update existing data using the same function, the secret is the id, if it is null Raven identifies that you are inserting new data, but if it is filled and it is valid it just updates the registry.

You can check the project here:
Github repository

The readme has a very basic guide on how to download and install RavenDB on your machine.

Alt Text

Feel free to clone or fork the project. Suggestions, criticism and praise are also welcome 😉.

Photo by Tyler Quiring on Unsplash

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more