PDA

View Full Version : ویرایش فیلد کلید در Linq



Davood_amega
یک شنبه 15 شهریور 1388, 11:50 صبح
فیلد UnityNumber که تو جدول Customer کلید هست رو می خوام تغییر بدم ولی Error زیر رو میده:





Unhandled exception has occurred in your application. If you click
Continue, the application will ignore this error and attempt to continue. If
you click Quit, the application will close immediately.
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue.
If you click Quit, the application will close immediately.
Value of member 'UnityNumber' of an object of type 'Custumer' changed.
A member defining the identity of the object cannot be changed.
Consider adding a new object with new identity and deleting the existing
one instead.


ضمنا فیلد به صورت Identityتعریف نشده.
مي خوام اطلاعات رو به صورت دستي وارد كنم واسه همين نمي خام Identity باشه.