Tech Off Post

Single Post Permalink

View Thread: Convert ArrayList (of Objects) to DataSet
  • User profile image
    DiViNO

    I'm using NHibernate to access the database.
    NHibernate has a function to get a list of all elements of a persisted class (select * from table).

    The list it returns is an arraylist of objects of that persisted class, but I want to convert that arraylist to a dataset

    I tried to XmlSerialize the arraylist but it keeps failing (Type not expected)
    Binary serializing works but then I can't deserialize to a DataSet

    I hope you guys can help me out it's drivin' me nuts !!