Monday, August 21, 2006

 

Serialization

Two types:

  1. XML Serialization: Do not serialize private fields and read only properties.
  2. Formatted Serialization: Serializes every thing. Must be marked with [Serializable]. Optinally implement ISerializable interface. Two types:
    • Binary Formatter
    • SOAP Formatter

Wednesday, August 09, 2006

 

SqlDataAdapter (Dataset) vs SqlDataReader

When to use SqlDataAdapter? and When to use SqlDataReader ?

If you use a SqlDataAdapter to generate a DataSet or DataTable, note the following:

Use a SqlDataReader obtained by calling the ExecuteReader method of the SqlCommand object when:


This page is powered by Blogger. Isn't yours?