Abstract base class holding an IQueryHandler. The usage of the InterLinqContext is comparable with System.Data.Linq.DataContext.
Namespace: Zyan.InterLinq
Assembly: Zyan.Communication
Collapse/Expand Syntax
public abstract class InterLinqContext  
Collapse/Expand Members

Click here to see the list of members.

Collapse/Expand Example
The following code illustrates a possible implementation of InterLinqContext.
	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>(); }