Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

are mismatched cols an issue? #396

Open
GusBeare opened this issue May 9, 2017 · 0 comments
Open

are mismatched cols an issue? #396

GusBeare opened this issue May 9, 2017 · 0 comments

Comments

@GusBeare
Copy link

GusBeare commented May 9, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant