Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq.Expressions;
- namespace Webdevelopment.Hif.Data
- {
- public class AdHocSpecification<T> : Specification<T>
- {
- private readonly Expression<Func<T, bool>> _specification;
- public AdHocSpecification(Expression<Func<T, bool>> specification)
- {
- _specification = specification;
- }
- public override Expression<Func<T, bool>> AsExpression()
- {
- return _specification;
- }
- }
- }
Add Comment
Please, Sign In to add comment