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