are mismatched cols an issue?

#396 · open · 0 comments

View on GitHub ↗

GusBeare

I love Simple. Data and I hope it doesn't die. I am curious about something. I am playing with dynamic objects and not using models. If I update a table like this: db.Mytable.UpdateById(formRow); Sometimes there are items in the data object (formRow) that are missing from the table. Only a couple at the most. I can remove these like this: formRow.Remove(KeyName); But is there any point? Simple.Data seems to be able to handle the mismatches. Is it good practice to remove them? I would assume that I should only ever include cols that are being updated. But is it really necessary?

Comments