예제 #1
0
        public string GetValueByName(string name)
        {
            Setting setting = repo.Get().Where(s => (s.Application == application || s.Application == 0)).OrderByDescending(s => s.Application)
                              .FirstOrDefault(s => s.Name == name);

            return(setting != null ? setting.Value : string.Empty);
        }
예제 #2
0
 public Interval GetIntervalByType(FCCLTestType testType)
 {
     return(repo.Get().Where(s => (s.Application == application || s.Application == 0)).OrderByDescending(s => s.Application)
            .FirstOrDefault(s => s.Type == (int)testType));
 }
예제 #3
0
 public Machine GetMachineByName(string name)
 {
     return(repo.Get().Where(m => (m.Application == application || m.Application == 0)).OrderByDescending(m => m.Application).FirstOrDefault(m => m.Name == name));
 }