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

ACI image

ACI.dev: Best Open-Source Composio Alternative (AI Agent Tooling)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Star our GitHub!

Top comments (0)

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

Embark on this engaging article, highly regarded by the DEV Community. Whether you're a newcomer or a seasoned pro, your contributions help us grow together.

A heartfelt "thank you" can make someone’s day—drop your kudos below!

On DEV, sharing insights ignites innovation and strengthens our bonds. If this post resonated with you, a quick note of appreciation goes a long way.

Get Started