Ejemplo n.º 1
0
        public virtual void CopyTo(DigitalPicnik.ListCollection collection, bool deep)
        {
            if ((typeof(System.ICloneable).IsAssignableFrom(typeof(DigitalPicnik.List)) == false))
            {
                deep = false;
            }
            System.Collections.Generic.IEnumerator <DigitalPicnik.List> enumerator = this.GetEnumerator();
            bool b;

            for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext())
            {
                if ((deep == true))
                {
                    collection.Add(((DigitalPicnik.List)(((System.ICloneable)(enumerator.Current)).Clone())));
                }
                else
                {
                    collection.Add(enumerator.Current);
                }
            }
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public virtual DigitalPicnik.ListCollection Clone(bool deep)
 {
     DigitalPicnik.ListCollection ret = new DigitalPicnik.ListCollection();
     this.CopyTo(ret, deep);
     return(ret);
 }
Ejemplo n.º 4
0
 public static DigitalPicnik.ListCollection LoadAll()
 {
     DigitalPicnik.ListCollection ret = DigitalPicnik.ListCollection.PageLoadAll(int.MinValue, int.MaxValue, null);
     return(ret);
 }