views:

39

answers:

1

Hi Everyone,

I have a LinqDataSource like this one :

<asp:LinqDataSource ID="linqDSUsers" runat="server" 
     ContextTypeName="Repository.BBDatabaseDataContext" 
     Select="new (UserID,FirstName,LastName)" TableName="Users">
</asp:LinqDataSource>

How can I convert it into this :

<asp:LinqDataSource ID="linqDSUsers" runat="server" 
     ContextTypeName="Repository.BBDatabaseDataContext" 
     Select="new (UserID,FullName = FirstName + LastName)" TableName="Users">
</asp:LinqDataSource>

Thank you very much in advance.

+2  A: 
Select="new (UserID, FirstName + LastName As FullName)"
Anwar Chandra
You are simply amazing...... !!!!
Braveyard