Click here to Skip to main content
14,022,565 members
Rate this:
Please Sign up or sign in to vote.
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
‫ابو محمد‬‎ 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190417.4 | Last Updated 22 Feb 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100