public static DigitalPicnik.ListCollection PageLoadAll(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions) { if ((pageIndex < 0)) { pageIndex = 0; } if ((pageSize < 0)) { if ((pageOptions != null)) { pageSize = pageOptions.DefaultPageSize; } else { pageSize = int.MaxValue; } } DigitalPicnik.ListCollection ret = new DigitalPicnik.ListCollection(); System.Data.IDataReader reader = null; try { reader = DigitalPicnik.ListCollection.PageDataLoadAll(pageOptions); if ((reader == null)) { return(ret); } ret.LoadAll(pageIndex, pageSize, pageOptions, reader); } finally { if ((reader != null)) { reader.Dispose(); } CodeFluent.Runtime.CodeFluentPersistence.CompleteCommand(DigitalPicnik.Constants.DigitalPicnikStoreName); } return(ret); }