I'm trying to save a new entity without changing any of its properties so that the table gets filled with all the column defaults. I am currently receiving an error when doing this. I know that the entities are meant to only save changed values, but if I don't change any values then it won't save. The only value being changed would be the PK identity value.
Yes, this is possible. Set all fields to null, using SetNewFieldValue(index, null);. This will mark the fields as changed, and will save a NULL into the fields, making the database to insert the default instead
Yes, this is possible. Set all fields to null, using SetNewFieldValue(index, null);. This will mark the fields as changed, and will save a NULL into the fields, making the database to insert the default instead
Thanks for the help Otis. I have this working now.