Abstract base class holding an
IQueryHandler.
The usage of the
InterLinqContext is comparable
with
System.Data.Linq.DataContext.
C# |
---|
public abstract class InterLinqContext |
|
|
Click here to see the list of members.
The following code illustrates a possible implementation of
InterLinqContext.
C# |
---|
public class CompanyContext : InterLinqContext {
public CompanyContext(IQueryHandler queryHandler) : base(queryHandler) { }
public IQueryable<Company> Companies {
get { return QueryHander.Get<Company>(); }
}
public IQueryable<Company> Departments {
get { return QueryHander.Get<Departments>(); }
}
public IQueryable<Company> Employees {
get { return QueryHander.Get<Employee>(); }
}
}
|