https://github.com/syedhassaanahmed/aspnet-crud-demo
This ASP.NET 6.0 App demonstrates simple CRUD operations on Cosmos DB Core API using Entity Framework Core
https://github.com/syedhassaanahmed/aspnet-crud-demo
asp-net-core azure-cosmos-db crud-application csharp-code document-database dotnet6 entity-framework-core nunit-tests rest-api
Last synced: 6 months ago
JSON representation
This ASP.NET 6.0 App demonstrates simple CRUD operations on Cosmos DB Core API using Entity Framework Core
- Host: GitHub
- URL: https://github.com/syedhassaanahmed/aspnet-crud-demo
- Owner: syedhassaanahmed
- License: mit
- Created: 2016-12-11T17:53:19.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-01-15T14:56:41.000Z (over 2 years ago)
- Last Synced: 2024-12-29T10:50:21.209Z (6 months ago)
- Topics: asp-net-core, azure-cosmos-db, crud-application, csharp-code, document-database, dotnet6, entity-framework-core, nunit-tests, rest-api
- Language: C#
- Homepage:
- Size: 5.22 MB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aspnet-crud-demo
This ASP.NET 6.0 App demonstrates simple CRUD operations on [Cosmos DB Core API](https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/getting-started) using [Entity Framework Core](https://learn.microsoft.com/en-us/ef/core/providers/cosmos/?tabs=dotnet-core-cli).
## API Routes
The app documents API routes through [OpenAPI specification](https://learn.microsoft.com/en-us/aspnet/core/tutorials/web-api-help-pages-using-swagger?view=aspnetcore-7.0).## Optimistic Concurrency Control
Optimistic concurrency control has been implemented using ETag and HTTP headers, similar to the [Cosmos DB approach](https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/database-transactions-optimistic-concurrency#implementing-optimistic-concurrency-control-using-etag-and-http-headers).## Integration Tests
Integration tests use the in-memory Test Server as [described here](https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-7.0). As a prerequisite, [Cosmos DB Emulator](https://learn.microsoft.com/en-us/azure/cosmos-db/local-emulator?tabs=ssl-netstd21) must be installed and running.