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
C#
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.
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>(); }
		}
	}