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)); }
/// <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)); }