Last inserted id

3 posts, 0 answers
  1. Leandro Vidal
    Leandro Vidal avatar
    3 posts
    Member since:
    Jan 2010

    Posted 16 Jan 2010 Link to this post

    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. devoas
    devoas avatar
    69 posts
    Member since:
    Dec 2009

    Posted 17 Jan 2010 Link to this post

  3. DevCraft banner
  4. Leandro Vidal
    Leandro Vidal avatar
    3 posts
    Member since:
    Jan 2010

    Posted 17 Jan 2010 Link to this post

    Ok. Thanks. The telerik wizard doesn't put the autoincrement fields automatically, so it didn't work.

    Thanks again ;)
Back to Top