Queries that project or involve the use of anonymous types.
context.Posts.Select(g => new { u = g.Url, c = g.Count() });
Error Message
System.Reflection.MissingRuntimeArtifactException: MakeGenericMethod() cannot create this generic method
instantiation because the instantiation was not metadata-enabled:
'Microsoft.Data.Entity.Storage.IDatabase.CompileQuery<<>f__AnonymousType39<T>>(Remotion.Linq.QueryModel)'
context.Posts.GroupBy(p => p.Id, p=> new { p.BlogId })
Error Message
System.Reflection.MissingRuntimeArtifactException: MakeGenericMethod() cannot create this generic method instantiation
because the instantiation was not metadata-enabled:
'Microsoft.Data.Entity.Query.Internal.LinqOperatorProvider._GroupBy<Microsoft.Data.Entity.Storage.ValueBuffer,System.String,<>f__AnonymousType55<T>>()'
context.Posts.Where(p => EF.Property<string>(p, "DraftTitle") == "New Post")
Error Message
System.InvalidOperationException: The EF.Property<T> method may only be used within LINQ queries.
var posts = from c in comments
join p in ps on c.PostId equals p.CommentId into posts
from p in posts
select p
Error Message
System.Reflection.MissingMetadataException: 'System.Collections.Generic.IEnumerable<Microsoft.Data.Entity.Query.EntityQueryModelVisitor.TransparentIdentifier<T1,System.Collections.Generic.IEnumerable<T2>>>'