Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Commented Issue: AsStreaming invalid generic constraint? [1201]

$
0
0
The following fails to compile:

context.History
.Where(h => h.MigrationId == migrationId)
.Select(_ => 1)
.AsStreaming()

// AsStreaming causes compilation error because the project returns IQueryable<int> and there is a class constraint on the T of AsStreaming.

Comments: Assigned to Andriy.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>