Exemple #1
0
 public List <Sampling> GetAllSamplings(ProjectSetting pr, LandingSite ls, Gear g, DateTime month)
 {
     return(SamplingCollection
            .Where(t => t.ProjectSetting.ProjectID == pr.ProjectID)
            .Where(t => t.LandingSite.LandingSiteID == ls.LandingSiteID)
            .Where(t => t.Gear.GearName == g.GearName)
            .Where(t => t.DateTimeSampled >= month)
            .Where(t => t.DateTimeSampled < month.AddMonths(1)).ToList());
 }
Exemple #2
0
 public List <Sampling> GetAllSamplings(Gear g)
 {
     return(SamplingCollection
            .Where(t => t.Gear.GearID == g.GearID).ToList());
 }
Exemple #3
0
 public List <Sampling> GetAllSamplings(Fisher f)
 {
     return(SamplingCollection
            .Where(t => t.FisherGPS.Fisher.FisherID == f.FisherID).ToList());
 }
Exemple #4
0
 public List <Sampling> GetAllSamplings(LandingSite ls)
 {
     return(SamplingCollection
            .Where(t => t.LandingSite.LandingSiteID == ls.LandingSiteID).ToList());
 }