Click here to Skip to main content
15,899,639 members

Comments by Faisal_Raj (Top 20 by date)

Faisal_Raj 14-Jun-22 7:20am View    
"InvalidOperationException: The instance of entity type 'imageModels' cannot be tracked because another instance with the same key value for {'ImgID'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values." -

Here is the confusion. Updating all fields no issues but updating individually name field having this issue.
If I try to update name filed only without uploading any file the function will not go into if condition but showing this error.
Faisal_Raj 14-Jun-22 7:12am View    
"_context.Update(imgModels);" - this following line showing the error while trying to update name filed only.
Faisal_Raj 16-Oct-19 9:51am View    
I'm sorry. I'm very new in this field, unable to understand your idea. But in this system I have to store and update user status "0" or "1" in database each time. I have no idea that how can I use your concept in this case
Faisal_Raj 16-Oct-19 9:36am View    
How can I send the value user status "0" ?
Faisal_Raj 16-Oct-19 9:14am View    
How to set timestamp , please give me some example code