public virtual void CopyTo(SoftFluent.Samples.SignalR.CustomerCollection collection, bool deep)
        {
            if ((typeof(System.ICloneable).IsAssignableFrom(typeof(SoftFluent.Samples.SignalR.Customer)) == false))
            {
                deep = false;
            }
            System.Collections.Generic.IEnumerator <SoftFluent.Samples.SignalR.Customer> enumerator = this.GetEnumerator();
            bool b;

            for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext())
            {
                if ((deep == true))
                {
                    collection.Add(((SoftFluent.Samples.SignalR.Customer)(((System.ICloneable)(enumerator.Current)).Clone())));
                }
                else
                {
                    collection.Add(enumerator.Current);
                }
            }
        }
 public static SoftFluent.Samples.SignalR.CustomerCollection 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;
         }
     }
     SoftFluent.Samples.SignalR.CustomerCollection ret = new SoftFluent.Samples.SignalR.CustomerCollection();
     System.Data.IDataReader reader = null;
     try
     {
         reader = SoftFluent.Samples.SignalR.CustomerCollection.PageDataLoadAll(pageOptions);
         if ((reader == null))
         {
             return(ret);
         }
         ret.LoadAll(pageIndex, pageSize, pageOptions, reader);
     }
     finally
     {
         if ((reader != null))
         {
             reader.Dispose();
         }
         CodeFluent.Runtime.CodeFluentPersistence.CompleteCommand(SoftFluent.Samples.SignalR.Constants.SoftFluent_Samples_SignalRStoreName);
     }
     return(ret);
 }
 public virtual void SaveAll(SoftFluent.Samples.SignalR.CustomerCollection customerCollection)
 {
     SoftFluent.Samples.SignalR.CustomerCollection customerCollection1 = customerCollection;
     customerCollection1.SaveAll();
 }
 public virtual SoftFluent.Samples.SignalR.CustomerCollection Clone(bool deep)
 {
     SoftFluent.Samples.SignalR.CustomerCollection ret = new SoftFluent.Samples.SignalR.CustomerCollection();
     this.CopyTo(ret, deep);
     return(ret);
 }
 public static SoftFluent.Samples.SignalR.CustomerCollection LoadAll()
 {
     SoftFluent.Samples.SignalR.CustomerCollection ret = SoftFluent.Samples.SignalR.CustomerCollection.PageLoadAll(int.MinValue, int.MaxValue, null);
     return(ret);
 }