Search code examples
c#asp.netdatasetstrongly-typed-dataset

What's the difference between the methods when we create typed dataset?


HI When we create typed dataset in .Net, we can choose 2 methods. One is Fill a DataTable and another is Return a DataTable. What's the difference between those two? Can anybody give me some good explanation on it ? Sorry about my ignorance.

Thanks.


Solution

  • Its been a long time since I've worked with typed datasets, but from what i remember the difference between the two is: "Returns a DataTable" returns a new instance of the DataTable object. "Fills a DataTable" takes in an object you already have and fills the results with it.