I want to be able to bind to this datasource without the view needing to know that there is an additional parameter (unless he cares). Is this possible to do?
[Query]
public IQueryable<Product> GetProduct(int productID, bool someAdditionalStuff = false)
{
return _someProvider.GetProduct(productID, someAdditionalStuff);
}
<DomainDataSource
ID="ProductDataSource"
runat="server"
QueryName="GetProduct"
EnableDelete="false" EnableInsert="false" EnableUpdate="false">
<QueryParameters>
<asp:Parameter Name="ProductID" Type="Int32" DefaultValue="-1" />
</QueryParameters>
</DomainDataSource>