Dapper-Extensions
                                
                                
                                
                                    Dapper-Extensions copied to clipboard
                            
                            
                            
                        Insert will store a value marked as readonly. Update will not.
If I create a ClassMapper and mark a property as ReadOnny() but then specify a value on my object and call db.Insert(myObj) it will insert the data with the specified value.
If I instantiate a object, set the marked Readonly property to a value and call db.Update(myObj) it won't update that field in the database.
Looking at the code Update filters out the properties marked as ReadOnly but Insert doesn't
It's fixed on next release