Exemple #1
0
        public virtual void CopyTo(SoftFluent.Json.NET.SupportCollection collection, bool deep)
        {
            if ((typeof(System.ICloneable).IsAssignableFrom(typeof(SoftFluent.Json.NET.Support)) == false))
            {
                deep = false;
            }
            System.Collections.Generic.IEnumerator <SoftFluent.Json.NET.Support> enumerator = this.GetEnumerator();
            bool b;

            for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext())
            {
                if ((deep == true))
                {
                    collection.Add(((SoftFluent.Json.NET.Support)(((System.ICloneable)(enumerator.Current)).Clone())));
                }
                else
                {
                    collection.Add(enumerator.Current);
                }
            }
        }
Exemple #2
0
 public virtual void SetSupport(object values)
 {
     if ((values == null))
     {
         return;
     }
     System.Collections.IDictionary dictionary = null;
     dictionary = values as System.Collections.IDictionary;
     if ((dictionary != null))
     {
         this.SetSupport(dictionary);
         return;
     }
     SoftFluent.Json.NET.SupportCollection support = null;
     support = values as SoftFluent.Json.NET.SupportCollection;
     if ((support != null))
     {
         this._support = support;
         return;
     }
 }
Exemple #3
0
 public static SoftFluent.Json.NET.SupportCollection PageLoadSupportSpacesBySpace(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, SoftFluent.Json.NET.Space space)
 {
     if ((pageIndex < 0))
     {
         pageIndex = 0;
     }
     if ((pageSize < 0))
     {
         if ((pageOptions != null))
         {
             pageSize = pageOptions.DefaultPageSize;
         }
         else
         {
             pageSize = int.MaxValue;
         }
     }
     SoftFluent.Json.NET.SupportCollection ret = new SoftFluent.Json.NET.SupportCollection();
     System.Data.IDataReader reader            = null;
     try
     {
         reader = SoftFluent.Json.NET.SupportCollection.PageDataLoadSupportSpacesBySpace(pageOptions, space);
         if ((reader == null))
         {
             return(ret);
         }
         ret.LoadSupportSpacesBySpace(pageIndex, pageSize, pageOptions, reader, space);
     }
     finally
     {
         if ((reader != null))
         {
             reader.Dispose();
         }
         CodeFluent.Runtime.CodeFluentPersistence.CompleteCommand(SoftFluent.Json.NET.Constants.SoftFluent_Json_NETStoreName);
     }
     return(ret);
 }
Exemple #4
0
 public static SoftFluent.Json.NET.SupportCollection LoadSupportSpacesBySpace(SoftFluent.Json.NET.Space space)
 {
     SoftFluent.Json.NET.SupportCollection ret = SoftFluent.Json.NET.SupportCollection.PageLoadSupportSpacesBySpace(int.MinValue, int.MaxValue, null, space);
     return(ret);
 }
Exemple #5
0
 public static SoftFluent.Json.NET.SupportCollection LoadAll()
 {
     SoftFluent.Json.NET.SupportCollection ret = SoftFluent.Json.NET.SupportCollection.PageLoadAll(int.MinValue, int.MaxValue, null);
     return(ret);
 }
Exemple #6
0
 public virtual SoftFluent.Json.NET.SupportCollection Clone(bool deep)
 {
     SoftFluent.Json.NET.SupportCollection ret = new SoftFluent.Json.NET.SupportCollection();
     this.CopyTo(ret, deep);
     return(ret);
 }