示例#1
0
        public override void Run()
        {
            DataAccessInterface dataAccess = new DBTableAccess();
            AggregateCategory   aggregate  = (AggregateCategory)dataAccess.Search(DataAccessInterface.SearchPattern.Categorys, param);

            TypeCategoryAggregate categoryInfo = new TypeCategoryAggregate(aggregate);

            param.SetParam(categoryInfo);
        }
示例#2
0
        private void SearchData()
        {
            Console.WriteLine("ServiceBooksSearch Run");
            //検索実行
            DataAccessInterface dataAccess = new DBTableAccess();
            AggregateBook       aggregate  = (AggregateBook)dataAccess.Search(DataAccessInterface.SearchPattern.BooksAllInfo, param);

            //取得データを格納
            TypeBookAggregate bookInfo = new TypeBookAggregate(aggregate);

            param.SetParam(bookInfo);
        }
示例#3
0
        public override void Run()
        {
            Console.WriteLine("ServiceSearchUser Run");
            DataAccessInterface dataAccess = new DBTableAccess();
            AggregateUser       aggregate  = (AggregateUser)dataAccess.Search(DataAccessInterface.SearchPattern.Users, param);

            Console.WriteLine("this is size of Run method in Service class: " + aggregate.Size());
            //IteratorUser iu = (IteratorUser)aggregate.Iterator();
            //while (iu.HasNext())
            //{
            //    DataListUser dlu = (DataListUser)iu.Next();
            //    Console.WriteLine("this is Iterator in Run Method: " + dlu.UserName());
            //}
            TypeUserAggregate userInfo = new TypeUserAggregate(aggregate);

            param.SetParam(userInfo);
        }