Doug,
I've got something for you to try.
- In your business object project, create a subclass of mmDataAccessSql (use the MM .NET SQL Server Data Access item template to make this easier) and add the following code to the CreateDataAdapter() method:
public override System.Data.IDataAdapter CreateDataAdapter()
{
this.CommandBuilder = null;
return base.CreateDataAdapter();
}
- In your application's Factory class, override the CreateDataAccessSql() factory method to return your new data access class. For example:
public class Factory : OakLeaf.MM.Main.Windows.Forms.mmFactoryDesktop
{
public override OakLeaf.MM.Main.Data.mmDataAccessSql CreateDataAccessSql()
{
return new MyDataAccessSql();
}
}
Let me know if this fixes the problem.
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