GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  ADO.NET 2.0

 Print  |  
Question:  What is basic difference between Dataset and Typed Dataset. When to use Typed dataset?



June 06, 2007 05:54:45 #2
 Amit kulshrestha   Member Since: Visitor    Total Comments: N/A 

RE: What is basic difference between Dataset and Typed...
 
As all of us know, we can specify the Data type when we create a DataColumn for a DataTable. This is to enforce the runtime Type-safety for the column so that only data of specified data type can be stored in the column. In the same way, in most of the cases we prefer to make a DataSet itself as Type-safe so as to protect it from runtime mismatch. Hence Typed DataSets generate classes that expose each object there in the DataSet in Type-safe manner. These classes inherits directly from DataSet class.
     

 

Back To Question