Esempio n. 1
0
        public virtual void CopyTo(ModelCodeFluent.Identity.UserClaimCollection collection, bool deep)
        {
            if ((typeof(System.ICloneable).IsAssignableFrom(typeof(ModelCodeFluent.Identity.UserClaim)) == false))
            {
                deep = false;
            }
            System.Collections.Generic.IEnumerator <ModelCodeFluent.Identity.UserClaim> enumerator = this.GetEnumerator();
            bool b;

            for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext())
            {
                if ((deep == true))
                {
                    collection.Add(((ModelCodeFluent.Identity.UserClaim)(((System.ICloneable)(enumerator.Current)).Clone())));
                }
                else
                {
                    collection.Add(enumerator.Current);
                }
            }
        }
Esempio n. 2
0
 public static ModelCodeFluent.Identity.UserClaimCollection PageLoadByUser(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, ModelCodeFluent.Identity.User user)
 {
     if ((pageIndex < 0))
     {
         pageIndex = 0;
     }
     if ((pageSize < 0))
     {
         if ((pageOptions != null))
         {
             pageSize = pageOptions.DefaultPageSize;
         }
         else
         {
             pageSize = int.MaxValue;
         }
     }
     ModelCodeFluent.Identity.UserClaimCollection ret = new ModelCodeFluent.Identity.UserClaimCollection();
     System.Data.IDataReader reader = null;
     try
     {
         reader = ModelCodeFluent.Identity.UserClaimCollection.PageDataLoadByUser(pageOptions, user);
         if ((reader == null))
         {
             return(ret);
         }
         ret.LoadByUser(pageIndex, pageSize, pageOptions, reader, user);
     }
     finally
     {
         if ((reader != null))
         {
             reader.Dispose();
         }
         CodeFluent.Runtime.CodeFluentPersistence.CompleteCommand(ModelCodeFluent.Constants.ModelCodeFluentStoreName);
     }
     return(ret);
 }
Esempio n. 3
0
 public static ModelCodeFluent.Identity.UserClaimCollection LoadByUser(ModelCodeFluent.Identity.User user)
 {
     ModelCodeFluent.Identity.UserClaimCollection ret = ModelCodeFluent.Identity.UserClaimCollection.PageLoadByUser(int.MinValue, int.MaxValue, null, user);
     return(ret);
 }
Esempio n. 4
0
 public static ModelCodeFluent.Identity.UserClaimCollection LoadAll()
 {
     ModelCodeFluent.Identity.UserClaimCollection ret = ModelCodeFluent.Identity.UserClaimCollection.PageLoadAll(int.MinValue, int.MaxValue, null);
     return(ret);
 }
Esempio n. 5
0
 public virtual ModelCodeFluent.Identity.UserClaimCollection Clone(bool deep)
 {
     ModelCodeFluent.Identity.UserClaimCollection ret = new ModelCodeFluent.Identity.UserClaimCollection();
     this.CopyTo(ret, deep);
     return(ret);
 }