[Firebird-net-provider] [FB-Tracker] Created: (DNET-776) Switch to single csproj with multitargeting

2017-08-25 Thread Jiri Cincura (JIRA)
Switch to single csproj with multitargeting --- Key: DNET-776 URL: http://tracker.firebirdsql.org/browse/DNET-776 Project: .NET Data provider Issue Type: Task Components: ADO.NET Provider

[Firebird-net-provider] EF - last inserted ID is 0

2017-08-25 Thread Mr. John via Firebird-net-provider
HiI'm using FB 2.5,EF Firebird 5.9.1,Asp MVC 5 with VS 2017  on a table I have a trigger to generate ID:    CREATE OR ALTER TRIGGER TRIG_MYTABLE_BI FOR MYTABLE                      ACTIVE BEFORE INSERT POSITION 0                      AS                      BEGIN                        IF ((NEW.I

Re: [Firebird-net-provider] EF - last inserted ID is 0

2017-08-25 Thread paul.mercea
The trigger from you database has nothing to do with your c# code.You can use a stored procedure to insert data and returning latest id (also you can read current sequence value but you can have wrong value if other inserts happening). Sent from my Samsung Galaxy smartphone. Original m

Re: [Firebird-net-provider] EF - last inserted ID is 0

2017-08-25 Thread Mr. John via Firebird-net-provider
Hi.Thanks Paul for your answerFor my first code I've followed this: https://stackoverflow.com/questions/4068084/how-to-find-an-identity-of-the-last-inserted-row-in-entity-frameworkand that seems not to apply to FB?I so I can insert ID without trigger,directly from my code,something like this: