This question is locked. New answers and comments are not allowed.
Hello,
Making my own model based on Telerik OpenAccess, i ran into a little converion problem.
In OpenAccess the model has a Application_authorization_user_Entity Class. In my model i have a class that inherits from him and is called User.
Ofcource when using the Telerik Context GetAll function it retrieves a IQueryable(Of Application_authorization_user_Entity) object.
I would like to convert that to: IQueryable(Of User)
I thougt of doing that with the IQueryable.Cast function, but then i get that the conversion failed (could not cast)
Any ideas on that?
Partial
Public
Class
User
Inherits
Application_authorization_user_Entity
End
Class
Public
ReadOnly
Property
Users()
As
IQueryable(Of User)
Get
Dim
u
As
IQueryable(Of UserEntity)
u = mobj_OAContext.GetAll(Of Application_authorization_user_Entity)()
Dim
x
As
IQueryable(Of User)
x = u.Cast(Of User)()
Return
x
End
Get
End
Property
Regards,
Erik