public static Prestation First() { return(DAO.GetDbSet <Prestation>().First()); }
public static IEnumerable <Prestation_Territoire> WherePrestation(int id) { return(DAO.GetDbSet <Prestation_Territoire>().Where(pt => pt.Prestation.ID == id)); }
public static Prestation_Territoire Where(int prestationId, int territoireId) { return(DAO.GetDbSet <Prestation_Territoire>().Single(pt => pt.Prestation.ID == prestationId && pt.Territoire.ID == territoireId)); }
public static void RemoveJoin(int prestationId, int territoireId) { var join = DAO.db.Prestation_Territoire.Single(j => j.Prestation.ID == prestationId && j.Territoire.ID == territoireId); DAO.Delete(join); }