Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

How to return multiple result set from EF query

$
0
0

when we use inline sql then we can write sql in such a way as a result it return multiple result set hitting db once time. for example

select * from department;select * from employee

here i use semicolon so when i execute the above sql with ado.net then database will be hit only one time and multiple result set will be return.

so when i am working with EF then how could i write linq query which will return multiple result set. i do not want to call store proc by EF rather i use EF linq query.

if possible please tell me. thanks


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>