Expression Columns

Let's say I have a typed dataset with one table in it. The table has 50 columns of type decimal. 49 of them are expression columns. Does this buy me anything when passing this data via web service Is it going to save bandwidth or does it get serialized even though its an expression

The reason I ask is because I had always assumed it would make for a smaller download, but I just did Dataset.WriteXML and if you look in the file it shows a value for the expression column.

Anybody know



Answer this question

Expression Columns

  • Shawn Hubbard

    It would pass all 50 columns. WS would use IXmlSerializable interface to serialize DataSet and IXmlSerializable on DataSet is pretty much a combination of DataSet.WriteXmlSchema() and DataSet.WriteXml() in diffgram format. As you already know, DataSet.WriteXml() writes everything, same would happen with WS.



  • Expression Columns