How do I select NULL as a column option in linq.
My sql would read.
Select field1, field2, field3, null as "null", field4
from table1
My linq query would be:
from t in table1
select new { t.field1, t.field2, t.field3, null as "null", t.field4}
The error generated by visual studio is:
Cannot assign to anonymous type property