Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Entity Objects
Message
De
06/12/2006 11:48:22
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Using Entity Objects
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01175267
Message ID:
01175267
Vues:
43
I need to know how to save an entity object in the datarow in order to save the dataset.
I have code like this:

oQuoteBiz Quote = new QuoteBiz;
oQuoteEntity = new QuoteEntity()
// set some values in the entity
oQuoteEntity.QuoteDate=DateTime.Today;
...
oQuoteBiz.NewRow();
oQuoteBiz.Entity=oQuoteEntity;

// now how do save the entity in the data row ?
// is there a better way than coding each column ?:
oQuoteBiz.DataRow[0]["QuoteDate"]=oQuoteEntity.QuoteDate;
...

oQuoteBiz.SaveDataRow();

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform