You can try something simple as shown below:
var rows = dbContext.TableName.Select(x=>x.ColumName);
where dbContext is the class that you use to βchatβ with your database, TableName is the name of the table whose column values ββyou want to read, and ColumnName is the name of the column.
Also, if you put a ToList after Select , you will create a list of objects whose type will be the type of the values ββin the column named ColumnName .
source share