Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
هنگام اضافه کردن آیتم جدید به آیدی گیر میده Auto ince,ent ham میگه نباید باشه مشکل از چیه چظوری حل کنم ؟!
Exception Details: System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_Ads'. Cannot insert duplicate key in object 'dbo.Ads'. The duplicate key value is (0).
The statement has been terminated.
کی میگه نباید Auto Increment باشه ؟
اگر نباشه خودتون باید کلید اصلی رو تولید کنید
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)