コード例 #1
0
ファイル: Product.GetAll.cs プロジェクト: renick/NgTsWebApi
        public List <Product> GetAllFromProduct()
        {
            ISelectionFactory <NullableIdentity> selectionFactory = new GetAllFromProductSelectionFactory();

            try
            {
                NullableIdentity nullableIdentity = new NullableIdentity();
                return(base.Find(selectionFactory, new GetAllFromProductFactory(), nullableIdentity));
            }
            catch (DbException ex)
            {
            }
            return(new List <Product>());
        }
コード例 #2
0
ファイル: NgTsUser.GetAll.cs プロジェクト: renick/NgTsWebApi
        public List <NgTsUser> GetAllFromNgTsUser()
        {
            ISelectionFactory <NullableIdentity> selectionFactory = new GetAllFromNgTsUserSelectionFactory();

            try
            {
                NullableIdentity nullableIdentity = new NullableIdentity();
                return(base.Find(selectionFactory, new GetAllFromNgTsUserFactory(), nullableIdentity));
            }
            catch (DbException ex)
            {
            }
            return(new List <NgTsUser>());
        }
コード例 #3
0
        public List <Buzzword> GetAllFrombuzzwords()
        {
            ISelectionFactory <NullableIdentity> selectionFactory = new GetAllFrombuzzwordsSelectionFactory();

            try
            {
                NullableIdentity nullableIdentity = new NullableIdentity();
                return(base.Find(selectionFactory, new GetAllFrombuzzwordsFactory(), nullableIdentity));
            }
            catch (SqlException ex)
            {
                HandleSqlException(ex, selectionFactory);
            }

            return(new List <Buzzword>());
        }