Tags

#efcore
efcore

33stories
2 d agolatest
Messaging
Messaging
DVDEV Community: #aspnetcore Anas Amin 2 d ago

Sending leads to Odoo without losing one: a transactional outbox in ASP.NET Core

Saving a lead and then calling Odoo means two writes that can each fail on their own. Anas Amin describes a transactional outbox where the lead and a message describing it commit together, and a Hangfire job delivers the message later. Leased claims, error classification, dead-lettering and idempotent Odoo writes carry the rest of the design.

NebulaGraph
Duplicate-free graph loads
DVDEV Community: #csharp Mehdi Mohseni 3 d ago

Idempotent NebulaGraph bulk ingestion from .NET using deterministic VIDs

NebulaGraph has no unique indexes, so duplicates in a graph load usually come from unstable vertex IDs and edge ranks. The author shows how to derive deterministic VIDs from business keys with FNV-1a and pin edge rank, which makes repeated loads safe. A batched .NET ingestion pipeline with checkpoints and retries is included.

Veri ve SQL Server
UTF-8 Collation Migration
CCC# Corner Vivek Kumar 3 d ago

Migrating SQL Server to UTF-8 Collations Without Breaking Data

In SQL Server 2019 and later, varchar columns using a collation whose name ends in _UTF8 can store Unicode text, so not every text column has to become nvarchar. The change is more than a single database setting, though: comparisons, sorting, unique indexes and storage sizes all shift. The article lays out a step-by-step path from column inventory to production rollout.

TableSchema
Compare, plan, then apply
DVDEV Community: #dotnet Jeff Tsai 3 d ago

TableSchema and database structure upgrades: compare, plan, execute

This post explains how a .NET ERP framework applies TableSchema definitions to the physical database without migration scripts. Each upgrade compares the live structure with the definition, then separates compare, plan and execute so the mode (ALTER or rebuild) can be checked before running. It is useful for developers who maintain schemas that already hold production data.

EF Core 10
Database blocks overlaps
DVDEV Community: #csharp Ricardo Groß 3 d ago

Booking cottages with range types in .NET 10: no double bookings via PostgreSQL

CodoMetis.ValueRanges 10.4 and EFCore.ComplexIndexes are used to build a holiday-cottage booking API end to end. Date ranges are modelled as single values, overlapping bookings are blocked by a PostgreSQL exclusion constraint, and free nights are computed in one query. A practical example for EF Core developers working with PostgreSQL.

EF Core 10
Query patterns and SQL

EF Core Isn't Slow: Five Query Patterns That Are

This article outlines five EF Core query patterns behind many slow pages, plus one habit that catches them all: read the SQL EF generates instead of judging the C# code. It covers N+1 queries, loading whole tables or unneeded columns, cartesian explosions from collection Includes, and filters that prevent index use. It is a practical checklist for anyone writing data access code.

.NET 11 Native AOT
Domain model under AOT

Publishing a C# 15 Domain Model with Native AOT on .NET 11

NimblePros published its Tiles & Tokens sample, which relies on C# 15 unions and closed hierarchies, as a Native AOT binary on the .NET 11 RC1 SDK. The domain and serialization code produced no trimming or AOT warnings, and the native app ran correctly. The publish errors came from a reflection-based converter, an anonymous type and EF Core, which is a useful checklist for anyone planning a Native AOT app.

.NET 10
Slices or layers?
CWMukesh Murugan (codewithmukesh) Mukesh Murugan 4 d ago

Vertical Slice vs Clean Architecture in .NET 10: the hybrid layout

The author compares Vertical Slice and Clean Architecture on the same Product API in .NET 10, counting the files each layout touches for one new feature. He then presents a hybrid layout that keeps the Domain project, drops the Application project, and groups endpoints by feature. It is a practical reference for teams deciding how to structure a Web API.

FluentMap 3.6
Keep old mappings working
DVDEV Community: #dotnet Rodrigo de Oliveira 5 d ago

Dapper FluentMap Is Back: What Changed from 2.0 to 3.6

After six years without a stable release, Dapper FluentMap is maintained again and version 3.6.0 adds nested mappings, property converters, isolated runtimes, analyzers and source generators. The author stresses keeping existing applications working during upgrades. The piece also covers what to check before moving from 2.0.0 and which databases are certified.

EF Core
Keep tenant data apart
DVDEV Community: #efcore Zohaib Ahmad 5 d ago

Multi-tenancy in EF Core: no tenant means no rows

The author shows a multi-tenancy pattern for ASP.NET Core and EF Core that uses global query filters so each request only sees its own tenant's rows. When no tenant is set, filtered queries return nothing, which fails closed. The post also covers tenant-scoped unique indexes, limiting IgnoreQueryFilters(), and an integration test that checks cross-tenant access. It is a practical starting point for SaaS backends.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message