Click here to Skip to main content
15,882,017 members
Articles / Web Development / ASP.NET / ASP.NET Core

Return DataTable Using Entity Framework

Rate me:
Please Sign up or sign in to vote.
4.89/5 (7 votes)
5 Apr 2020CPOL2 min read 41.3K   330   9  
Select data as DataTable object for a database using Entity Framework
To get back the results in the form of a DataTable object in an application using Oracle database and Entity Framework EDMX, I needed to select data from unmapped shared views with an existing DB context instance. To do this, I wrote a small extension method for DbContext object as explained in this post.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Bangladesh Bangladesh
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions