Beispiel #1
0
 public long AddTool(ToolRepresentation tool)
 {
     using (ISQLConnection dataSource = DataSource)
     {
         return(dataSource.AddTool(RepresentationConverter.convertTool(tool)));
     }
 }
Beispiel #2
0
 public void UpdateTool(ToolRepresentation tool)
 {
     using (ISQLConnection datasource = DataSource)
     {
         datasource.UpdateTool(RepresentationConverter.convertTool(tool));
     }
 }
Beispiel #3
0
 public List <ToolRepresentation> GetAllTools()
 {
     using (ISQLConnection dataSource = DataSource)
     {
         return(dataSource.GetAllTools().Select(t => RepresentationConverter.convertTool(t)).ToList());
     }
 }