I am using a customised linq to sql datacontext in a objectdatasource. When I add this datasource to a table, it shows error 'Ambiguous match found'. I think it's my Shadowed property that causes this error. Is there any work around? I need to use Shadows as I want to hide the property generated from linq to sql datacontext and use my inherited class with pre-filtering.
This is what my customised datacontext looks like:
This is what my customised datacontext looks like:
Public
Class
ReportTestFiltered
Inherits
ReportTestDataContext
Public
Sub
New
()
MyBase
.
New
()
End
Sub
Public
Shadows
ReadOnly
Property
Users()
As
IQueryable(Of User)
Get
Return
MyBase
.Users.Where(
Function
(x) x.Active).AsQueryable()
End
Get
End
Property
End
Class