I have a List<Product> that I need to sort (by key) and persistthat sorting, its basically a list of items but the user needs to beable to sort them and save that in the db, does anyone have a snippetor sample?
Thanks
hello.
If the product class is serializable, then i think that you can easily build a classe which inherits from list<product> and implements the iserializable interface. here's an article about serialization in .net:
http://www.15seconds.com/issue/020903.htm
I need to find a clean way to persist it in the db, not a file.
Thanks,
Edgardo
hello.
well, it's almos the same thing. you'll just need to have a column which is capable of savings blobs. by the way, if you want to save the elements in text format, then use the xmlserializer
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment