Beispiel #1
0
        public EntityType[] Filter(Rock.Orm.Common.WhereClip where, OrderByClip orderBy, int topCount, int skipCount)
        {
            if (filter == null)
            {
                lock (this)
                {
                    if (filter == null)
                    {
                        filter = new EntityArrayQuery <EntityType>(this.ToArray());
                    }
                }
            }

            return(filter.FindArray(where, orderBy, topCount, skipCount));
        }
Beispiel #2
0
 /// <summary>
 /// Filters the specified where.
 /// </summary>
 /// <param name="where">The where.</param>
 /// <returns></returns>
 public EntityType[] Filter(Rock.Orm.Common.WhereClip where)
 {
     return(Filter(where, null));
 }