public virtual void CopyTo(SoftFluent.Samples.AspNetIdentity1.RoleCollection collection, bool deep) { if ((typeof(System.ICloneable).IsAssignableFrom(typeof(SoftFluent.Samples.AspNetIdentity1.Role)) == false)) { deep = false; } System.Collections.Generic.IEnumerator <SoftFluent.Samples.AspNetIdentity1.Role> enumerator = this.GetEnumerator(); bool b; for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext()) { if ((deep == true)) { collection.Add(((SoftFluent.Samples.AspNetIdentity1.Role)(((System.ICloneable)(enumerator.Current)).Clone()))); } else { collection.Add(enumerator.Current); } } }
public virtual void SetRoles(object values) { if ((values == null)) { return; } System.Collections.IDictionary dictionary = null; dictionary = values as System.Collections.IDictionary; if ((dictionary != null)) { this.SetRoles(dictionary); return; } SoftFluent.Samples.AspNetIdentity1.RoleCollection roles = null; roles = values as SoftFluent.Samples.AspNetIdentity1.RoleCollection; if ((roles != null)) { this._roles = roles; return; } }
public static SoftFluent.Samples.AspNetIdentity1.RoleCollection PageLoadRolesUsersByUser(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, SoftFluent.Samples.AspNetIdentity1.User user) { if ((pageIndex < 0)) { pageIndex = 0; } if ((pageSize < 0)) { if ((pageOptions != null)) { pageSize = pageOptions.DefaultPageSize; } else { pageSize = int.MaxValue; } } SoftFluent.Samples.AspNetIdentity1.RoleCollection ret = new SoftFluent.Samples.AspNetIdentity1.RoleCollection(); System.Data.IDataReader reader = null; try { reader = SoftFluent.Samples.AspNetIdentity1.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.AspNetIdentity1.Constants.SoftFluent_Samples_AspNetIdentity1StoreName); } return(ret); }
public static SoftFluent.Samples.AspNetIdentity1.RoleCollection LoadRolesUsersByUser(SoftFluent.Samples.AspNetIdentity1.User user) { SoftFluent.Samples.AspNetIdentity1.RoleCollection ret = SoftFluent.Samples.AspNetIdentity1.RoleCollection.PageLoadRolesUsersByUser(int.MinValue, int.MaxValue, null, user); return(ret); }
public static SoftFluent.Samples.AspNetIdentity1.RoleCollection LoadAll() { SoftFluent.Samples.AspNetIdentity1.RoleCollection ret = SoftFluent.Samples.AspNetIdentity1.RoleCollection.PageLoadAll(int.MinValue, int.MaxValue, null); return(ret); }
public virtual SoftFluent.Samples.AspNetIdentity1.RoleCollection Clone(bool deep) { SoftFluent.Samples.AspNetIdentity1.RoleCollection ret = new SoftFluent.Samples.AspNetIdentity1.RoleCollection(); this.CopyTo(ret, deep); return(ret); }