If I execute some SQL:
await DbContext.Database.ExecuteSqlRawAsync();
Does that then need a call to:
await DbContext.SaveChangesAsync();
Does anyone know if this is clearly documented somewhere? I'm having difficulty finding it.
They are unrelated. Raw SQL Queries can change the database directly. Modified entities in the change tracker change the database on SaveChanges.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With