What is the difference between Typed and UnTyped DataSets?

 Posted by Ddd on 1/25/2011 | Category: ADO.NET Interview questions | Views: 20143 | Points: 40
Answer:

1)Typed DataSets use explicit names and DataTypes for their members.
example:
northwindDataSet.Products.ProductNameColumn.Caption = "pnames";

2)They have .xsd file (Xml Schema definition) file associated with them and do error checking regarding their schema at design time using the .xsd definitions.

UnTyped DataSets:
1)UnTyped DataSets use table and column collections for their members
ex:
ds.Tables["emp"].Columns["eno"].ReadOnly=true;

2)They do not do error checking at the design time as they are filled at run time when the code executes.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Sathya4260 on: 1/26/2011 | Points: 10
Can you provide more points on this...

Login to post response