This is a migrated thread and some comments may be shown as answers.

Last inserted id

2 Answers 70 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Leandro Vidal
Top achievements
Rank 1
Leandro Vidal asked on 16 Jan 2010, 01:20 PM
Hello. I'm using MySQL with C# and Telerik Orm. I have this code:

scope.Transaction.Begin();
scope.add(customer);
scope.Transaction.Commit();

I'd like to know how can I get the customer id autogenerated by "autoincrement" of MySQL.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
devoas
Top achievements
Rank 1
answered on 17 Jan 2010, 03:28 PM
0
Leandro Vidal
Top achievements
Rank 1
answered on 17 Jan 2010, 03:31 PM
Ok. Thanks. The telerik wizard doesn't put the autoincrement fields automatically, so it didn't work.

Thanks again ;)
Tags
Development (API, general questions)
Asked by
Leandro Vidal
Top achievements
Rank 1
Answers by
devoas
Top achievements
Rank 1
Leandro Vidal
Top achievements
Rank 1
Share this question
or