예제 #1
0
 public static Prestation First()
 {
     return(DAO.GetDbSet <Prestation>().First());
 }
예제 #2
0
 public static IEnumerable <Prestation_Territoire> WherePrestation(int id)
 {
     return(DAO.GetDbSet <Prestation_Territoire>().Where(pt => pt.Prestation.ID == id));
 }
예제 #3
0
 public static Prestation_Territoire Where(int prestationId, int territoireId)
 {
     return(DAO.GetDbSet <Prestation_Territoire>().Single(pt => pt.Prestation.ID == prestationId && pt.Territoire.ID == territoireId));
 }
예제 #4
0
        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);
        }