コード例 #1
0
        public override void Run()
        {
            base.Run();

            DataAccessInterface dataAccess = new DBTableAccess();

            dataAccess.Regist(DataAccessInterface.DataTable.Books, param);
        }
コード例 #2
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);
        }
コード例 #3
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);
        }
コード例 #4
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);
        }
コード例 #5
0
        public override void Run()
        {
            DataAccessInterface dataAccess = new DBTableAccess();

            dataAccess.Regist(DataAccessInterface.DataTable.User, param);
        }