예제 #1
0
 public Plant getPlantByName(Plant plant)
 {
     return(Dbase.getCurrentInstance()
            .plants.Where(p => p.name == plant.name)
            .FirstOrDefault <Plant>());
 }
예제 #2
0
 public IList <DataValues> getAllDataValuesByPlant(Plant plant)
 {
     return(Dbase.getCurrentInstance().dataValues
            .Where(dv => dv.plant == plant)
            .ToList <DataValues>());
 }
예제 #3
0
 public Plant getPlantByNameAndCooperative(Plant plant)
 {
     return(Dbase.getCurrentInstance().plants
            .Where(p => p.name == plant.name && p.cooperativeId == plant.cooperativeId)
            .FirstOrDefault <Plant>());
 }