public virtual void CopyTo(SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection collection, bool deep) { if ((typeof(System.ICloneable).IsAssignableFrom(typeof(SoftFluent.Samples.Thinktecture.IdentityServer.Role)) == false)) { deep = false; } System.Collections.Generic.IEnumerator <SoftFluent.Samples.Thinktecture.IdentityServer.Role> enumerator = this.GetEnumerator(); bool b; for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext()) { if ((deep == true)) { collection.Add(((SoftFluent.Samples.Thinktecture.IdentityServer.Role)(((System.ICloneable)(enumerator.Current)).Clone()))); } else { collection.Add(enumerator.Current); } } }
public static SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection PageLoadRolesUsersByUser(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, SoftFluent.Samples.Thinktecture.IdentityServer.User user) { if ((pageIndex < 0)) { pageIndex = 0; } if ((pageSize < 0)) { if ((pageOptions != null)) { pageSize = pageOptions.DefaultPageSize; } else { pageSize = int.MaxValue; } } SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection ret = new SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection(); System.Data.IDataReader reader = null; try { reader = SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection.PageDataLoadRolesUsersByUser(pageOptions, user); if ((reader == null)) { return(ret); } ret.LoadRolesUsersByUser(pageIndex, pageSize, pageOptions, reader, user); } finally { if ((reader != null)) { reader.Dispose(); } CodeFluent.Runtime.CodeFluentPersistence.CompleteCommand(SoftFluent.Samples.Thinktecture.IdentityServer.Constants.SoftFluent_Samples_Thinktecture_IdentityServerStoreName); } return(ret); }
public static SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection LoadRolesUsersByUser(SoftFluent.Samples.Thinktecture.IdentityServer.User user) { SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection ret = SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection.PageLoadRolesUsersByUser(int.MinValue, int.MaxValue, null, user); return(ret); }
public static SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection LoadAll() { SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection ret = SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection.PageLoadAll(int.MinValue, int.MaxValue, null); return(ret); }
public virtual SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection Clone(bool deep) { SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection ret = new SoftFluent.Samples.Thinktecture.IdentityServer.RoleCollection(); this.CopyTo(ret, deep); return(ret); }