Esempio n. 1
0
        public IBOIdentityuserlogin BOİdentityuserlogin(IIdentityuserloginRepository repo)
        {
            BOIdentityuserlogin boİdentityuserlogin = (BOIdentityuserlogin)BOİdentityuserlogin();

            boİdentityuserlogin.Repository = repo;
            return(boİdentityuserlogin);
        }
 ///<Summary>
 ///IdentityuserloginCollectionCount
 ///This method returns the collection count of BOIdentityuserlogin objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 IdentityuserloginCollectionCount(IIdentityuserloginRepository iIdentityuserloginRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iIdentityuserloginRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
        ///<Summary>
        ///IdentityuserloginCollection
        ///This method returns the collection of BOIdentityuserlogin objects
        ///</Summary>
        ///<returns>
        ///IList[IBOIdentityuserlogin]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOIdentityuserlogin> IdentityuserloginCollection(IIdentityuserloginRepository iIdentityuserloginRepository)
        {
            Doing(null);
            try
            {
                IList <IBOIdentityuserlogin>  boIdentityuserloginCollection  = new List <IBOIdentityuserlogin>();
                IList <IDAOIdentityuserlogin> daoIdentityuserloginCollection = iIdentityuserloginRepository.SelectAll();
                Done(null);

                foreach (IDAOIdentityuserlogin daoIdentityuserlogin in daoIdentityuserloginCollection)
                {
                    boIdentityuserloginCollection.Add(new BOIdentityuserlogin(daoIdentityuserlogin));
                }

                return(boIdentityuserloginCollection);
            }
            catch (Exception ex)
            {
                Failed(null, ex);
                Handle(null, ex);
                return(null);
            }
        }