SteveWinward / GoogleSheetsWrapper

Google Sheets API .NET Wrapper Library
MIT License
48 stars 13 forks source link

How to update a record? #26

Closed HughMacdonald closed 11 months ago

HughMacdonald commented 12 months ago

I've been building some code around this library, and one thing I've not figured out is how best to update a record. I've had to create my own batch using record.ConvertToCellData(), but it would be great to have UpdateRecord() and UpdateRecords() to wrap this.

SteveWinward commented 11 months ago

@HughMacdonald, have you seen the strongly typed examples on the readme page?

https://github.com/SteveWinward/GoogleSheetsWrapper#core-operations-strongly-typed

You can call the BaseRepository class SaveField / SaveFields methods to avoid making a ConvertToCellData method. This does require you to model strongly typed objects first though.

HughMacdonald commented 11 months ago

Ah - I had seen those, but missed SaveField. Thanks for the pointer on that one