public virtual void CopyTo(SoftFluent.Samples.GED.Security.RoleCollection collection, bool deep) { if ((typeof(System.ICloneable).IsAssignableFrom(typeof(SoftFluent.Samples.GED.Security.Role)) == false)) { deep = false; } System.Collections.Generic.IEnumerator <SoftFluent.Samples.GED.Security.Role> enumerator = this.GetEnumerator(); bool b; for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext()) { if ((deep == true)) { collection.Add(((SoftFluent.Samples.GED.Security.Role)(((System.ICloneable)(enumerator.Current)).Clone()))); } else { collection.Add(enumerator.Current); } } }
public static SoftFluent.Samples.GED.Security.RoleCollection 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.GED.Security.RoleCollection ret = new SoftFluent.Samples.GED.Security.RoleCollection(); System.Data.IDataReader reader = null; try { reader = SoftFluent.Samples.GED.Security.RoleCollection.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.GED.Constants.SoftFluent_Samples_GEDStoreName); } return(ret); }
public virtual SoftFluent.Samples.GED.Security.RoleCollection Clone(bool deep) { SoftFluent.Samples.GED.Security.RoleCollection ret = new SoftFluent.Samples.GED.Security.RoleCollection(); this.CopyTo(ret, deep); return(ret); }
public static SoftFluent.Samples.GED.Security.RoleCollection LoadAll() { SoftFluent.Samples.GED.Security.RoleCollection ret = SoftFluent.Samples.GED.Security.RoleCollection.PageLoadAll(int.MinValue, int.MaxValue, null); return(ret); }