开发者

Can I specify a Stored Procedure in my LinqDataSource?

开发者 https://www.devze.com 2022-12-31 16:12 出处:网络
开发者_StackOverflow中文版I have a Listview that I want to read the results of a Stored procedure. I have created the DBML object with the table and the stored procedure. When I configure my LinqDataS
开发者_StackOverflow中文版

I have a Listview that I want to read the results of a Stored procedure. I have created the DBML object with the table and the stored procedure. When I configure my LinqDataSource on the page I cannot specify the SProc - only the Table. Or do I need to do it in the Listview ? Thanks


Use a custom expression. See section "Using the Selecting Event"

http://weblogs.asp.net/scottgu/archive/2007/09/07/linq-to-sql-part-9-using-a-custom-linq-expression-with-the-lt-asp-linqdatasource-gt-control.aspx

0

精彩评论

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