R
Ronald S. Cook
Hi..
Does anyone know how to alias a column name in LINQ. I.e. like putting "AS
DiagnosisType" after a column in a select statement in SQL?
Return From d In dc.Diagnosis _
Where d.Lookup.LookupCode <> "INA" _
Select d.DiagnosisId, _
d.DiagnosisName, _
d.DiagnosisCode, _
d.Lookup1.LookupValue _ <<<--- Here is where I want "AS DiagnosisType"
Order By DiagnosisName
Thanks,
Ron
Does anyone know how to alias a column name in LINQ. I.e. like putting "AS
DiagnosisType" after a column in a select statement in SQL?
Return From d In dc.Diagnosis _
Where d.Lookup.LookupCode <> "INA" _
Select d.DiagnosisId, _
d.DiagnosisName, _
d.DiagnosisCode, _
d.Lookup1.LookupValue _ <<<--- Here is where I want "AS DiagnosisType"
Order By DiagnosisName
Thanks,
Ron