Пример #1
0
 public Run FindById(int raceId, int runNo)
 {
     return(template.QueryById("select * from Run where raceId=@raceId and runNo=@runNo",
                               MapRowToRun,
                               new QueryParameter("@raceId", raceId),
                               new QueryParameter("@runNo", runNo)));
 }
Пример #2
0
 public StartListMember FindByIds(int raceId, int skierId, int runNo)
 {
     return(template.QueryById(
                @"select * from startlist where raceId=@raceId and skierId=@skierId and runNo=@runNo",
                MapRowToStartList,
                new QueryParameter("@raceId", raceId),
                new QueryParameter("@skierId", skierId),
                new QueryParameter("@runNo", runNo)));
 }
Пример #3
0
 public SplitTime FindByIds(int raceDataId, int runNo, int splittimeNo)
 {
     return(template.QueryById(
                @"select * from Splittime where racedataId=@raceDataId and runNo=@runNo and splittimeNo=@splittimeNo",
                MapRowToSplittime,
                new QueryParameter("@raceDataId", raceDataId),
                new QueryParameter("@runNo", runNo),
                new QueryParameter("@splittimeNo", splittimeNo)));
 }
Пример #4
0
 public RaceData FindById(int id)
 {
     return(template.QueryById("select * from RaceData where id=@id",
                               MapRowToRaceData,
                               new QueryParameter("@id", id)));
 }
Пример #5
0
 public Skier FindById(int id)
 {
     return(template.QueryById("select * from skier where id=@id",
                               MapRowToSkier,
                               new QueryParameter("@id", id)));
 }
Пример #6
0
 public Race FindById(int id)
 {
     return(template.QueryById("select * from race where id=@id and deleted = 0",
                               MapRowToRace,
                               new QueryParameter("@id", id)));
 }
Пример #7
0
 public Status FindById(int id)
 {
     return(template.QueryById("select * from Status where id=@id",
                               MapRowToStatus,
                               new QueryParameter("@id", id)));
 }