alexandre-spieser / mongodb-generic-repository

An example of generic repository implementation using the MongoDB C# Sharp 2.0 driver (async)
MIT License
315 stars 87 forks source link

UpdateOneAsync #15

Closed dewelloper closed 5 years ago

dewelloper commented 5 years ago

How can i use this function

                bool result = await _mongoDbRepository.UpdateOneAsync<XPartitionedDocument,float>(
                    documentToModify: isExist,
                    field: x => (float)x.TotalPrice,
                    value: td.TotalPrice
                    );

https://stackoverflow.com/questions/54885343/mongodb-updateoneasync-expressionfunction-returning-input-string-was-not-in-a-co

alexandre-spieser commented 5 years ago

Seems like you answered your own question in StackOverflow. 👍