adamfoneil / Dapper.CX

A Crud library based on Dapper
MIT License
8 stars 1 forks source link

add optional delegate in UpdateUserAsync that lets you update any cached/session info as well #43

Open adamfoneil opened 3 years ago

adamfoneil commented 3 years ago

There's already an OnUserUpdatedAsync delegate, but if not initialized, then you can't call it. So, issue is to make this easier to call.

The use case here is I've updated some user property in the database, but I need to make sure it's reflected in Session (or wherever I've cached it).

I think maybe a new optional argument on the AddDapperCX startup method makes sense.