General information
Category:
The Mere Mortals .NET Framework
Title:
Using Entity Objects
Environment versions
Network:
Windows 2003 Server
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only