I think I'm running into this same problem with this generic
repository method:
public IQueryable<TEntity> GetAll()
{
return Table.Cast<TEntity>();
}
If the entities are of type "Person" and Person implements the IPerson
interface (Person : IPerson), it won't let me cast from Table<Person>
to Queryable<IPerson>. It compiles, but I get the same runtime error
as Watermelons (S0133: Implement QueryMethod Queryable.Cast).
Can you suggest a workaround for this?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/dblinq?hl=en.