persist to xml

persist to xml

Old forum URL: forums.lhotka.net/forums/t/545.aspx


leyh posted on Wednesday, July 05, 2006

Hi all,

Is it possible to persist to a xml file instead of a database in csla 2.0?

Is there a xml verion of dataportal?

cheers,

Leyh

ajj3085 replied on Wednesday, July 05, 2006

Yes, although its not the data portals job to write to the database.  Rather, the responsibility of the DataPortal is to move your object from the client workstation to a server workstation (if you've configured it that way, at least).

To write to an xml file, simply add the code to write the xml file in the DataPortal_Insert or DataPortal_Update methods.

HTH
andy


leyh replied on Wednesday, July 05, 2006

Thanks, Andy.


Leyh

Copyright (c) Marimer LLC