Joe,
>I have configured this business object to use both a custom data adapter and a typed dataset.
>How can I configure the properties and accessors using this typed dataset as you suggested as option 1?
Here's some information from the upcoming MM .NET Dev Guide:
Easy Access to Typed DataRowsWhen a business object retrieves data it automatically stores the first DataRow of the resulting DataSet into its
DataRow property. When you use strongly typed DataSets you can add a property to your business object that provides easy access to a strongly typed version of the DataRow.
For example, in C#:
public EmployeeDataSet.EmployeesRow EmployeeRow
{
get
{
return (EmployeeDataSet.EmployeesRow)this.DataRow;
}
}
And in VB .NET:
Public ReadOnly Property EmployeeRow() As EmployeeDataSet.EmployeesRow
Get
Return CType(Me.DataRow, EmployeeDataSet.EmployeesRow)
End Get
End Property
So, you could create a property that references this strongly typed DataRow. For example:
public string FirstName
{
get { return this.EmployeeRow.FirstName; }
set { this.EmployeeRow.FirstName = value; }
}
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