Jiri Cincura wrote:
> sasha wrote:
>> 1) For inserting component knows ID because it calls GEN_ID before 
>> inserting and than inserts record with alredy known id
>>
>> 2) For updating it use something like @ID variable
>>
>> So i don't see any problems...
> 
> You can do this in ADO.NET. First you get the ID, i.e. select gen_id('aaa', 
> 1) from rdb$database. Then perform the insert.
> 
> Similar to update, but you know the id from ... anywhere.

All this was built into FIBPlus components and worked automatically. I 
should only select generator from drop down list and key field value and 
that's all. That was a common practice :-)

As i understand microsoft developed ADO.NET looking at MS SQL server 
abilities and their autoincrements are not similar to our generators :-(

> Don't worry. ;) ADO.NET is easy.

Yes, DataReader and below classes ;-)



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to