Last active
February 24, 2022 17:38
-
-
Save offpepe/905172f64aac04e6a6dfaa562e4e6017 to your computer and use it in GitHub Desktop.
update models
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task updateT1 (T update) { | |
db.Table.Attach(updatedUser); | |
var entry = db.Entry(updatedUser); | |
entry.Property(e => e.Field).IsModified = true; | |
await db.SaveChangesAsync(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment