I need to use lambda expressions or other way to
specify default query for dlinq entity type.
Code below causes compile error shown in comment.
How to fix ?
Andrus.
using System;
using System.Linq;
// '<' unexpected : attributes cannot be generic
[QueryAttribute
class DomesticsSupplier {
public string Discriminator { get; set; };
public string Name { get; set; };
}
class QueryAttribute
IQueryable
internal QueryAttribute(IQueryable
Query = query;
}
}
Replies
Know the answer? Post it — somebody with the same question will find it here.