Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save radleta/201415 to your computer and use it in GitHub Desktop.
Save radleta/201415 to your computer and use it in GitHub Desktop.
<asp:LinqDataSource ID="LinqDataSource1" runat="server"
ContextTypeName="Company.Data.CompanyDataContext" OrderBy="FirstName"
Select="new (Id, LastName, FirstName)" TableName="Persons"
Where="CreatedByUserId == @CreatedByUserId">
<WhereParameters>
<asp:ProfileParameter DbType="Guid" Name="CreatedByUserId" PropertyName="UserId" />
</WhereParameters>
</asp:LinqDataSource>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment