22using System . Threading . Tasks ;
33using dotnet . Models ;
44using Microsoft . AspNetCore . Mvc ;
5- using ProGaudi . Tarantool . Client ;
6- using ProGaudi . Tarantool . Client . Model ;
7- using ProGaudi . Tarantool . Client . Model . Enums ;
5+ using Tarantool . Client ;
6+ using Tarantool . Client . Model ;
7+ using Tarantool . Client . Model . Enums ;
88
99namespace dotnet . Controllers
1010{
@@ -25,22 +25,22 @@ public HomeController(Box box)
2525 this . _secondaryIndex = result . Item3 ;
2626 }
2727
28- private async Task < TarantoolTuple < Space , Index , Index > > Initialize ( )
28+ private async Task < Tarantool . Client . Model . Tuple < Space , Index , Index > > Initialize ( )
2929 {
3030 var schema = this . _box . GetSchema ( ) ;
3131
3232 var space = await schema . GetSpace ( "some_space" ) ;
3333 var primaryIndex = await space . GetIndex ( "primary" ) ;
3434 var index = await space . GetIndex ( "some_secondary_index" ) ;
3535
36- return TarantoolTuple . Create ( space , primaryIndex , index ) ;
36+ return Tarantool . Client . Model . Tuple . Create ( space , primaryIndex , index ) ;
3737 }
3838
3939 public async Task < ViewResult > Index ( )
4040 {
41- var allDogs = await this . _primaryIndex . Select < TarantoolTuple < long > , TarantoolTuple < long , string , long > > ( TarantoolTuple . Create ( - 1L ) , new SelectOptions { Iterator = Iterator . All } ) ;
42- var seniorDogs = await this . _secondaryIndex . Select < TarantoolTuple < long > , TarantoolTuple < long , string , long > > ( TarantoolTuple . Create ( 5L ) , new SelectOptions { Iterator = Iterator . Ge } ) ;
43- var juniorDogs = await this . _secondaryIndex . Select < TarantoolTuple < long > , TarantoolTuple < long , string , long > > ( TarantoolTuple . Create ( 5L ) , new SelectOptions { Iterator = Iterator . Le } ) ;
41+ var allDogs = await this . _primaryIndex . Select < Tuple < long > , Tuple < long , string , long > > ( Tuple . Create ( - 1L ) , new SelectOptions { Iterator = Iterator . All } ) ;
42+ var seniorDogs = await this . _secondaryIndex . Select < Tuple < long > , Tuple < long , string , long > > ( Tuple . Create ( 5L ) , new SelectOptions { Iterator = Iterator . Ge } ) ;
43+ var juniorDogs = await this . _secondaryIndex . Select < Tuple < long > , Tuple < long , string , long > > ( Tuple . Create ( 5L ) , new SelectOptions { Iterator = Iterator . Le } ) ;
4444
4545 return View ( new [ ]
4646 {
0 commit comments