Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AutoIncrementPK and MySql
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01324875
Message ID:
01325608
Views:
18
Stuart,

>I have already overridden that with
>
>  return insertCommand += " ; Select LAST_INSERT_ID() AS " + this.PrimaryKeyName;
>
>so not sure where to go now.
>cheers
>no doubt I will get to the bottom of it eventually, any other ideas gratefully received

I'm guessing the actual error is occurring further along in the data access class...have you tried setting the UpdatedRowSource property to None as specified in the error message? You can do this in the data access class.

">When MySqlCommandBuilder.ReturnGeneratedIdentifiers is true,
>MySqlCommand.UpdatedRowSource must be set to None.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform