Following query is not able to assign in linq? Iam trying to call same column and rename it from datatable

(from S in dc.CUSTOMERs
select new
{
CustomerName = S.CUSTOMERNAME,
Customer2 = S.CUSTOMER2,
Customer2 = S.SO
});

Hi @Aravinthan

Use as instead of =

Thanks
Ashwin.S

error coming bro

Give like this

From s in DC.customers
Select new
S.customername=customername

Like this

Thanks
Ashwin.S