When it ships
The host already uses
Microsoft.Data.SqlClient and wants rowversion CAS on McpTasks under its own migrations.Until then
Stay on Entity Framework Core +
UseSqlServer when you already have a DbContext.IMcpTaskInputSignalBus.
Intended how-to
1
Add the package
Add
McpEssentials.SqlServer.2
Create the table
McpTasks with rowversion for compare-and-swap, indexes on OwnerUserId and DiscardAfter.3
Register the store
Singleton, same current-user factory as Authenticated tasks.
4
Optional bus
Register
IMcpTaskInputSignalBus for multi-node ElicitAsync.TTL
CallSweepExpiredAsync from a hosted service, or DELETE WHERE DiscardAfter <= SYSUTCDATETIME(). DiscardAfter is CreatedAt + 2×TimeToLive, stamped at write.
Related
Entity Framework Core
Shipped. Any EF provider, including
UseSqlServer.Stores
Pick a backing store by the engine you already run.