开发者

Return Modified Fields in LinqDataSource

开发者 https://www.devze.com 2022-12-14 13:23 出处:网络
I have a LinqDataSource like this one : <asp:LinqDataSource ID=\"linqDSUsers\" runat=\"server\" ContextTypeName=\"Repository.BBDatabaseDataContext\"

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" 
     ContextT开发者_开发知识库ypeName="Repository.BBDatabaseDataContext" 
     Select="new (UserID,FullName = FirstName + LastName)" TableName="Users">
</asp:LinqDataSource>

Thank you very much in advance.


Select="new (UserID, FirstName + LastName As FullName)"
0

精彩评论

暂无评论...
验证码 换一张
取 消