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

public Task<int> UpdateAsync(object poco, IEnumerable<string> columns) does not work with POCO that has string primary key #456

Closed
groogiam opened this issue May 11, 2018 · 1 comment

Comments

@groogiam
Copy link
Contributor

I reported this issue on the AsyncPoco project tmenier#47
AsyncPoco was forked from this project so I suspect that PetaPoco may have the same issue.

@asherber
Copy link
Collaborator

I ran your test project against current PetaPoco (from development branch), and everything worked fine for me.

Output of first db.LastCommand:

UPDATE [FeedStatus] SET [LastExecuted] = @0, [InProgressRequest] = @1 WHERE [FeedName] = @2
	 -> @0 [DateTime] = "10/31/2018 9:10:40 AM"
	 -> @1 [String] = "Test"
	 -> @2 [String] = "DeleteMe"

Output of second db.LastCommand:

UPDATE [FeedStatus] SET [InProgressRequest] = @0 WHERE [FeedName] = @1
	 -> @0 [String] = "Test"
	 -> @1 [String] = "DeleteMe"     

Closing this ticket, since the issue cannot be reproduced, but thank you for reporting.

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

3 participants