Example #1
0
        public IFilteredQueryOver <TEntity> As(IProjection projection)
        {
            projection.ThrowIfNull("projection");

            owner.AddFilter(property, projection);
            return(owner);
        }
Example #2
0
        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);
        }