Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding to multiple copies of table
Message
De
17/05/2006 13:14:23
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01114964
Message ID:
01122886
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform