Print Page | Close Window

Loading Business Objects into a DataSet

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=554
Printed Date: 13-Mar-2025 at 1:23pm


Topic: Loading Business Objects into a DataSet
Posted By: gussabina
Subject: Loading Business Objects into a DataSet
Date Posted: 18-Nov-2007 at 3:37pm
Hi:
It is possible to load some Business Objects into a DataSet? Some example about how to make it?
Regards;
Gus
 



Replies:
Posted By: davidklitzke
Date Posted: 19-Nov-2007 at 9:48am

The PersistenceManager has a property called DataSet which exposes all of the objects in the PersistenceManager Cache as a DataSet.

Therefore:
(1) Create a new PersistenceManager
(2) Read some objects into the PersistenceManager Cache
(3) Access the DataSet through the PM's DataSet property
 

EntityList<Order> orders = pPm.GetEntities<Order>();

DataSet ds = pPm.DataSet;

 

 


Posted By: gussabina
Date Posted: 19-Nov-2007 at 11:28am
Many thanks David:
BTW, it is possibly to have the XSD structure from this? I have a report tool (DataWindow.NET) which can extract data from the DataSet, but it requires the *.XSD file. My idea is to use IdeaBlade creating the Business Objects, and have some help from DataWindow.NET to create some reports.
 
Thanks in advance;
Gus


Posted By: davidklitzke
Date Posted: 20-Nov-2007 at 10:36am
Look at the Intermediate tutorial on Reporting.  It has a solution for creating Crystal Reports.  Crystal has the same requirement for an XSD file that you have.  Use this solution (or more exactly, one of the projects from this solution) to get your XSD file.



Print Page | Close Window