Closed JamesKyburz closed 11 years ago
When using UpsertBy the criteria keys are removed from the data when inserting.
Example
db.Staff.UpsertByUserId(UserId: 12, Email: "foo@foo.foo");
Insers a staff record with UserId null, this is because UserId is removed by :-
https://github.com/markrendle/Simple.Data/blob/master/Simple.Data/Commands/UpsertByCommand.cs#L65
Closed thanks to pull request. Ta.
When using UpsertBy the criteria keys are removed from the data when inserting.
Example
Insers a staff record with UserId null, this is because UserId is removed by :-
https://github.com/markrendle/Simple.Data/blob/master/Simple.Data/Commands/UpsertByCommand.cs#L65