Why cant datareader be returned from a web services method?
Answer / Azhar Khan
DataReader is not designed to work with data serialization, so it cannot be returned directly from a web service method. Instead, you should use DataTable or List<>. To return the result as JSON, you would need to convert the DataTable or List<> object into a JSON format.
| Is This Answer Correct ? | 0 Yes | 0 No |
How you can retrieve a single row with linq?
What do you understand by linq? Enlist its types.
What is the difference between N-layer and N-tier architecture?
Differentiate between conversion operator “todictionary” and “ienumerable” of linq.
What is system linq?
Define api in linq?
Explain what are compiled queries?
What is the query syntax?
How can you handle concurrency at field level in LINQ to SQL?
Differentiate between select() and selectmany() method in linq.
Difference between linq and stored procedures?
What is Expression Trees?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)