public virtual void CopyTo(DigitalPicnik.ItemCollection collection, bool deep) { if ((typeof(System.ICloneable).IsAssignableFrom(typeof(DigitalPicnik.Item)) == false)) { deep = false; } System.Collections.Generic.IEnumerator <DigitalPicnik.Item> enumerator = this.GetEnumerator(); bool b; for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext()) { if ((deep == true)) { collection.Add(((DigitalPicnik.Item)(((System.ICloneable)(enumerator.Current)).Clone()))); } else { collection.Add(enumerator.Current); } } }
public static DigitalPicnik.ItemCollection PageLoadByList(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, DigitalPicnik.List list) { if ((pageIndex < 0)) { pageIndex = 0; } if ((pageSize < 0)) { if ((pageOptions != null)) { pageSize = pageOptions.DefaultPageSize; } else { pageSize = int.MaxValue; } } DigitalPicnik.ItemCollection ret = new DigitalPicnik.ItemCollection(); System.Data.IDataReader reader = null; try { reader = DigitalPicnik.ItemCollection.PageDataLoadByList(pageOptions, list); if ((reader == null)) { return(ret); } ret.LoadByList(pageIndex, pageSize, pageOptions, reader, list); } finally { if ((reader != null)) { reader.Dispose(); } CodeFluent.Runtime.CodeFluentPersistence.CompleteCommand(DigitalPicnik.Constants.DigitalPicnikStoreName); } return(ret); }
public static DigitalPicnik.ItemCollection LoadByList(DigitalPicnik.List list) { DigitalPicnik.ItemCollection ret = DigitalPicnik.ItemCollection.PageLoadByList(int.MinValue, int.MaxValue, null, list); return(ret); }
public static DigitalPicnik.ItemCollection LoadAll() { DigitalPicnik.ItemCollection ret = DigitalPicnik.ItemCollection.PageLoadAll(int.MinValue, int.MaxValue, null); return(ret); }
public virtual DigitalPicnik.ItemCollection Clone(bool deep) { DigitalPicnik.ItemCollection ret = new DigitalPicnik.ItemCollection(); this.CopyTo(ret, deep); return(ret); }