예제 #1
0
        public IBOOrderDetailsExtended BOOrderDetailsExtended(IOrderDetailsExtendedRepository repo)
        {
            BOOrderDetailsExtended boOrderDetailsExtended = (BOOrderDetailsExtended)BOOrderDetailsExtended();

            boOrderDetailsExtended.Repository = repo;
            return(boOrderDetailsExtended);
        }
예제 #2
0
 ///<Summary>
 ///OrderDetailsExtendedCollectionCount
 ///This method returns the collection count of BOOrderDetailsExtended objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 OrderDetailsExtendedCollectionCount(IOrderDetailsExtendedRepository iOrderDetailsExtendedRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iOrderDetailsExtendedRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
예제 #3
0
        ///<Summary>
        ///OrderDetailsExtendedCollection
        ///This method returns the collection of BOOrderDetailsExtended objects
        ///</Summary>
        ///<returns>
        ///IList[IBOOrderDetailsExtended]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOOrderDetailsExtended> OrderDetailsExtendedCollection(IOrderDetailsExtendedRepository iOrderDetailsExtendedRepository)
        {
            Doing(null);
            try
            {
                IList <IBOOrderDetailsExtended>  boOrderDetailsExtendedCollection  = new List <IBOOrderDetailsExtended>();
                IList <IDAOOrderDetailsExtended> daoOrderDetailsExtendedCollection = iOrderDetailsExtendedRepository.SelectAll();
                Done(null);

                foreach (IDAOOrderDetailsExtended daoOrderDetailsExtended in daoOrderDetailsExtendedCollection)
                {
                    boOrderDetailsExtendedCollection.Add(new BOOrderDetailsExtended(daoOrderDetailsExtended));
                }

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