New Posts New Posts RSS Feed: Loading Business Objects into a DataSet
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Loading Business Objects into a DataSet

 Post Reply Post Reply
Author
gussabina View Drop Down
Newbie
Newbie
Avatar

Joined: 18-Nov-2007
Location: United States
Posts: 22
Post Options Post Options   Quote gussabina Quote  Post ReplyReply Direct Link To This Post Topic: Loading Business Objects into a DataSet
    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
 
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post 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;

 

 
Back to Top
gussabina View Drop Down
Newbie
Newbie
Avatar

Joined: 18-Nov-2007
Location: United States
Posts: 22
Post Options Post Options   Quote gussabina Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down