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(d=> d.Discriminator=="Domestics")]
class DomesticsSupplier {
  public string Discriminator { get; set; };
  public string Name { get; set; };
  }

class QueryAttribute : Attribute {
  IQueryable Query;
  internal QueryAttribute(IQueryable query) {
  Query = query;
  }
}