I am new to LINQ queries, please help me out to find the solution.
I have a source in Entity Framework data model, there is a table currency bound to the source with columns currencyID and CurrencyName.
I need to get the values from the database to the DataTable using a LINQ query.
I tried something like mentioned below but it's not working:
var dataset = Source.T_Currency
.Where(x=> x.CurrencyID == x.CurrencyID && x.CurrencySymbol == x.CurrencySymbol)
.Select(x => new x.Currency
{
CurrencyID = x.CurrencyID,
CurrencySymbol = x.CurrencySymbol
}).ToList();