adamfoneil / Dapper.CX

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

SqlCrudService.UpdateUserAsync is clearing columns unexpectedly #32

Closed adamfoneil closed 3 years ago

adamfoneil commented 3 years ago

Noticed in AH4 Blazor demo that calling UpdateUserAsync when changing customers sets AspNetUsers.EmailConfirmed to 0, which prevents a subsequent login. Not good! I recommend using a ChangeTracker or accept an array of column names. Workaround currently is to do a manual update in the database.

adamfoneil commented 3 years ago

changes here: https://github.com/adamfoneil/Dapper.CX/commit/5f093d4de9a5cd7c695abdf184120834ec2cd81c