Hi, @Nicholas_Vella,
Welcome to the MongoDB Community Forums. Our EF Provider does partial updates using the update command rather than full-document replacement. The 8.1 release added support for optimistic concurrency.
When configuring your DbContext, you can enable logging as follows:
var options = new DbContextOptionsBuilder<MoviesDbContext>()
.UseMongoDB(database.Client, database.DatabaseNamespace.DatabaseName)
.LogTo(Console.WriteLine)
.EnableSensitiveDataLogging()
.Options;
With logging enabled, the MQL for queries will be logged. It will also display the number of inserts, deletes, and updates made while saving changes. It does not yet render the MQL for data modifications. It should be possible, we just haven’t implemented that feature yet. Please add a feature request if this would be useful to you.
Sincerely,
James