Friday, December 25, 2020

How can you merge the results from two separate LINQ queries into a single result set?

 Options

- Use the ToList method.
- Use the DataContractJsonSerializer class.
- Use the XElement class.
- Use the Concat method.


CORRECT ANSWER : Use the Concat method.

No comments:

Post a Comment

Get max value for identity column without a table scan

  You can use   IDENT_CURRENT   to look up the last identity value to be inserted, e.g. IDENT_CURRENT( 'MyTable' ) However, be caut...