Exforsys
+ Reply to Thread
Results 1 to 5 of 5

pros and cons of Typed and untyped dataset

This is a discussion on pros and cons of Typed and untyped dataset within the C Sharp forums, part of the Programming Talk category; Hi, i want to know pros and cons of both Typed and Untyped dataset in detail. can we customize untyped ...

  1. #1
    vrushalik is offline Junior Member Array
    Join Date
    Jan 2007
    Answers
    1

    pros and cons of Typed and untyped dataset

    Hi,

    i want to know pros and cons of both Typed and Untyped dataset in detail.

    can we customize untyped dataset?

    What is benefit of Typed dataset?

    is there significant difference between performance of Typed and untyped dataset?

    is overhead in typed dataset is of XSD only or any else overhead is there?

    What is benefit of using Untyped dataset?

    Please give me some concret answers.



    thanks

    Vrushali


  2. #2
    Rahulbatra is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124
    A strongly typed has some methods and properties in it that helps to make it more describing, does it still inherits from dataset. Also a "generated" strongly typed dataset is not easy to change. It is possible you will save a few cycles using untyped DataSets on the back end.


  3. #3
    Adrian is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124
    The features of the DataSet object can be combined with XML to create a new type of object called the typed DataSet, which simplifies the task of data navigation. This is one of the benefits of typed dataset.


  4. #4
    sammy is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    144
    The nature of a DataSet requires that it is either typed or untyped. By definition a typed DataSet is any DataSet that is derived from the base DataSet class that applies the information contained in the XSD to generate a typed class. Information from the schema that contains the tables, columns, and rows is generated and compiled into a new DataSet derived from the XSD and this promotes the DataSet to a first class object in the .NET Framework. The process of inheriting the typed DataSet from the base DataSet class means that the typed class assumes all functionality of the DataSet class and can be used with methods that take an instance of the DataSet class as a parameter. This is the opposite of the untyped DataSet that has no corresponding schema and is exposed only as a collection.


  5. #5
    Corporate Gifts is offline Banned Array
    Join Date
    Nov 2009
    Answers
    2
    A typed dataset contains columns with strict types: Integers, dates, etc.

    An untyped set treats all columns as strings, which you can cast explicitly to other types, such as numerics, dates, etc., outside the dataset (in your code).


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...