This project is read-only.
ProLinq makes it easy to intercept a query execution. You can then log some information, examine the expression and based on that return your result or just throw an exception and etc.

IQueryable<Product> products = ProductRepository.Get();
products.Intercept(q =>
			Trace.WriteLine("ProductRepository is being queried: " + q.Expression.ToString());
			return q.Execute();

Last edited Jan 17, 2013 at 9:37 AM by DGolubets, version 1


No comments yet.