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); } } }
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; } }
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); }
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); }
public static SoftFluent.Json.NET.SupportCollection LoadAll() { SoftFluent.Json.NET.SupportCollection ret = SoftFluent.Json.NET.SupportCollection.PageLoadAll(int.MinValue, int.MaxValue, null); return(ret); }
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); }