Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding to multiple copies of table
Message
From
17/05/2006 13:14:23
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01114964
Message ID:
01122886
Views:
16
I've been working on the One bizObj with multiple tables in Microsoft SQL. I've run across an interesting problem. When I make a change in the mmTextBox, it isn't saved. I'm viewing the data from the database correctly, but no data is changing.

As I started looking into what is going on, when I execute
     oAddress.SaveDataSet("Mailing")
I get an exception 'System.Data.ReadOnlyException' which indicates my table is read-only. In the business object I use
     this.FillDataSet(this.DataSet, "SELECT * FROM " + this.PhysicalDbcObjectName
          + " WHERE " + this.PrimaryKey + " = @PrimaryKey", tableName, 
          iD);
to open the dataset where iD is a IDbDataParameter array.

Also, I can't find a way to use the Entity with these tables. Is there a way to do something like
oAddress.DataSet.Tables["Mailing"].Entity.City?
Thanks for the help,
Jeff
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform