Ejemplo n.º 1
0
        public IBOIdentityuserrole BOİdentityuserrole(IIdentityuserroleRepository repo)
        {
            BOIdentityuserrole boİdentityuserrole = (BOIdentityuserrole)BOİdentityuserrole();

            boİdentityuserrole.Repository = repo;
            return(boİdentityuserrole);
        }
Ejemplo n.º 2
0
 ///<Summary>
 ///IdentityuserroleCollectionCount
 ///This method returns the collection count of BOIdentityuserrole objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 IdentityuserroleCollectionCount(IIdentityuserroleRepository iIdentityuserroleRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iIdentityuserroleRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
Ejemplo n.º 3
0
        ///<Summary>
        ///IdentityuserroleCollection
        ///This method returns the collection of BOIdentityuserrole objects
        ///</Summary>
        ///<returns>
        ///IList[IBOIdentityuserrole]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOIdentityuserrole> IdentityuserroleCollection(IIdentityuserroleRepository iIdentityuserroleRepository)
        {
            Doing(null);
            try
            {
                IList <IBOIdentityuserrole>  boIdentityuserroleCollection  = new List <IBOIdentityuserrole>();
                IList <IDAOIdentityuserrole> daoIdentityuserroleCollection = iIdentityuserroleRepository.SelectAll();
                Done(null);

                foreach (IDAOIdentityuserrole daoIdentityuserrole in daoIdentityuserroleCollection)
                {
                    boIdentityuserroleCollection.Add(new BOIdentityuserrole(daoIdentityuserrole));
                }

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