FBDataadapter, FBCommand ile bağlantı yapıyorum.
Deneme Amaçlı;
ID - PK
Adı - String
Soyadı - String
alanları olan bir tablo oluşturdum. Trigger ile veritabanına :
Kod: Tümünü seç
IF (NEW.id IS NULL) THEN
NEW.id = GEN_ID(deneme_gen,1);
Datasetin autoinc alanlarınıda bu şekilde ayarladım.

Olmuyor, kayıt butonuna basınca,
şeklinde, id alanına verilen sayının zaten kayıtlı olduğu yönünde bir hata veriyor.Server Error in '/WebApplication6' Application.
--------------------------------------------------------------------------------
violation of PRIMARY or UNIQUE KEY constraint "PK_DENEME" on table "DENEME"
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.
Exception Details: FirebirdSql.Data.Firebird.FbException: violation of PRIMARY or UNIQUE KEY constraint "PK_DENEME" on table "DENEME"
WEB uygulamalarında generatoru nasıl kullanacağız, yardımcı olabilir misiniz?