コード例 #1
0
        public virtual void CopyTo(SoftFluent.Samples.AspNetIdentity1.UserCollection collection, bool deep)
        {
            if ((typeof(System.ICloneable).IsAssignableFrom(typeof(SoftFluent.Samples.AspNetIdentity1.User)) == false))
            {
                deep = false;
            }
            System.Collections.Generic.IEnumerator <SoftFluent.Samples.AspNetIdentity1.User> enumerator = this.GetEnumerator();
            bool b;

            for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext())
            {
                if ((deep == true))
                {
                    collection.Add(((SoftFluent.Samples.AspNetIdentity1.User)(((System.ICloneable)(enumerator.Current)).Clone())));
                }
                else
                {
                    collection.Add(enumerator.Current);
                }
            }
        }
コード例 #2
0
 public virtual void SetUsers(object values)
 {
     if ((values == null))
     {
         return;
     }
     System.Collections.IDictionary dictionary = null;
     dictionary = values as System.Collections.IDictionary;
     if ((dictionary != null))
     {
         this.SetUsers(dictionary);
         return;
     }
     SoftFluent.Samples.AspNetIdentity1.UserCollection users = null;
     users = values as SoftFluent.Samples.AspNetIdentity1.UserCollection;
     if ((users != null))
     {
         this._users = users;
         return;
     }
 }
コード例 #3
0
 public static SoftFluent.Samples.AspNetIdentity1.UserCollection PageLoadUsersRolesByRole(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, SoftFluent.Samples.AspNetIdentity1.Role role)
 {
     if ((pageIndex < 0))
     {
         pageIndex = 0;
     }
     if ((pageSize < 0))
     {
         if ((pageOptions != null))
         {
             pageSize = pageOptions.DefaultPageSize;
         }
         else
         {
             pageSize = int.MaxValue;
         }
     }
     SoftFluent.Samples.AspNetIdentity1.UserCollection ret = new SoftFluent.Samples.AspNetIdentity1.UserCollection();
     System.Data.IDataReader reader = null;
     try
     {
         reader = SoftFluent.Samples.AspNetIdentity1.UserCollection.PageDataLoadUsersRolesByRole(pageOptions, role);
         if ((reader == null))
         {
             return(ret);
         }
         ret.LoadUsersRolesByRole(pageIndex, pageSize, pageOptions, reader, role);
     }
     finally
     {
         if ((reader != null))
         {
             reader.Dispose();
         }
         CodeFluent.Runtime.CodeFluentPersistence.CompleteCommand(SoftFluent.Samples.AspNetIdentity1.Constants.SoftFluent_Samples_AspNetIdentity1StoreName);
     }
     return(ret);
 }
コード例 #4
0
 public static SoftFluent.Samples.AspNetIdentity1.UserCollection LoadUsersRolesByRole(SoftFluent.Samples.AspNetIdentity1.Role role)
 {
     SoftFluent.Samples.AspNetIdentity1.UserCollection ret = SoftFluent.Samples.AspNetIdentity1.UserCollection.PageLoadUsersRolesByRole(int.MinValue, int.MaxValue, null, role);
     return(ret);
 }
コード例 #5
0
 public static SoftFluent.Samples.AspNetIdentity1.UserCollection LoadAll()
 {
     SoftFluent.Samples.AspNetIdentity1.UserCollection ret = SoftFluent.Samples.AspNetIdentity1.UserCollection.PageLoadAll(int.MinValue, int.MaxValue, null);
     return(ret);
 }
コード例 #6
0
 public virtual SoftFluent.Samples.AspNetIdentity1.UserCollection Clone(bool deep)
 {
     SoftFluent.Samples.AspNetIdentity1.UserCollection ret = new SoftFluent.Samples.AspNetIdentity1.UserCollection();
     this.CopyTo(ret, deep);
     return(ret);
 }