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

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