Ignore:
Timestamp:
12/11/08 16:50:12 (12 years ago)
Author:
svonolfe
Message:

Added Job Adapter (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/ResourceAdapter.cs

    r925 r971  
    112112    }
    113113
     114    public Resource GetResourceByName(string name) {
     115      Resource resource = new Resource();
     116
     117      dsHiveServer.ResourceRow row =
     118        data.Single<dsHiveServer.ResourceRow>(
     119          r => !r.IsNameNull() && r.Name == name);
     120
     121      if (row != null) {
     122        Convert(row, resource);
     123
     124        return resource;
     125      } else {
     126        return null;
     127      }
     128    }
     129
    114130    public ICollection<Resource> GetAllResources() {
    115131      IList<Resource> allResources =
Note: See TracChangeset for help on using the changeset viewer.