Table<T> does not implement all members of IQueryProvider

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
freakshow
Posts: 12
Joined: Mon 28 Jul 2008 12:38
Location: Oslo, Norway

Table<T> does not implement all members of IQueryProvider

Post by freakshow » Tue 28 Oct 2008 14:35

When using the extension method System.Linq.Cast(this IQueryable source) on your Table object it throws a NotImplementedException.

Background:
I need to return an IQueryable where T is an interface representing the table.

Code: Select all

public IQueryable Entities{
Devart.Data.Linq.ITable table = this.GetTable(ResolveType());
return table.Cast();
}

Using stacktrace and Reflector it turns out that this is a member of IQueryProvider called CreateQuery that is not implemented. The strange thing is that you implement a similar, but generic version of the same method on the interface.

Will this be fixed soon or for the release?

I am using the newest beta (downloaded today) of dotConnect.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 30 Oct 2008 15:41

Thank you for the bug report. It will be fixed in the new build of dotConnect beta version.

Post Reply