Click here to Skip to main content
15,743,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm using repository pattern with ef core 2.2 , whet i try to update record with string PK , method Find(Key) cannot find the record.

but when i change the PK to identity INT method work !!!

What I have tried:

Imgur: The magic of the Internet[^]

Imgur: The magic of the Internet[^]
Updated 22-Feb-19 5:14am
Ahmed Dabas 23-Feb-19 6:28am    
no one can give me answer
ranjanichitra 27-Mar-19 8:34am    
Can u check with the spaces?.Also are you using Microsoft SQL server?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900