Mario,
>I believe that MM tries to create the Pk during the FillDataSet on the following line of code, am I wrong?. However, at the end of the filldataset no PK is created on the underlying table.
>
>
>// Specify that column and primary key information is added to the DataTable
> dbAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey;
>
>
This is an ADO.NET feature that pulls the primary key information back from the database when issuing a SELECT command. If you examine the DataTable afterwards, does its PrimaryKey property contain anything?
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