Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shaped Entities
Message
 
À
22/12/2008 13:31:43
Tegron Tegron
Platinum Technologies
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01368835
Message ID:
01369259
Vues:
17
Tegron,

If you want to stick with the shaped entity method, Tim's suggestion should take care of you.

If you want to use a different table for the same entity, you just have to add a reference to the tablename when you set up the BindingSourceMember. Rather than just entering the column name, you would enter MyTableName.MyColumnName. If you're binding to a DataGridView, you put the tablename in the BindingSourceMember property of the grid without a column name. When you want to reference a column in code, you will need to use the dataset for that table to get the values.

I hope that helps.

Linda

>When I investigate the entity using the latter method, the entity object still is returning the default entity. The doc reports that this method basically just adds another datatable to the DataSet.
>
>How do I get my bound form to display the data being returned from the dataset? Currently it is bound to the entity object and displaying the data from the default dataset, which is what it is supposed to do. The stored procedure that I am calling fromt he filldataset has a different data structure from the default entity. Is there a way to default to another dataset for the entity object?
>
> this.FillDataSet(this.GetCurrentDataSet(),"GetSubmittedRequestsByReimbursementStatusID", "Guardians",
> this.CreateParameter("@ReimbursementTypeID",reimburseTypeID,DbType.Int32,ParameterDirection.Input));
> return this.GetCurrentDataSet();
Linda Harmes
HiBit Technologies, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform