public IFilteredQueryOver <TEntity> As(IProjection projection) { projection.ThrowIfNull("projection"); owner.AddFilter(property, projection); return(owner); }
public IFilteredQueryOver <TEntity> As(Func <string, IProjection> projection) { projection.ThrowIfNull("projection"); foreach (var property in naturalIdProperties) { if (excludedProperties.Contains(property)) { continue; } owner.AddFilter(property, projection(property)); } return(owner); }