Beispiel #1
0
        public List <LC_ENT.CoffeeEntite> RechercherTP(LC_ENT.CoffeeEntite criteres)
        {
            List <LC_ENT.CoffeeEntite> reponseTP = new List <LC_ENT.CoffeeEntite>();

            reponseTP = LC_ENTTR.CoffeeTR.RechercherTP(criteres);

            return(reponseTP);
        }
Beispiel #2
0
        public LC_ENT.CoffeeEntite ObtenirInfoCoffee(LC_ENT.CoffeeEntite cofffee)
        {
            LC_ENT.CoffeeEntite reponseTP = new LC_ENT.CoffeeEntite();

            reponseTP = LC_ENTTR.CoffeeTR.GetCoffeeByType(cofffee.Type);

            return(reponseTP);
        }
Beispiel #3
0
        public static string SqlSelect(LC_ENT.CoffeeEntite criteres)
        {
            StringBuilder strSQL = new StringBuilder();

            strSQL.Append("SELECT *");
            strSQL.Append(" FROM ");
            strSQL.Append(CoffeeTable.NomTable);
            strSQL.Append(" WHERE type ");
            strSQL.Append(" = ");
            strSQL.Append("@type");
            return(strSQL.ToString());
        }
Beispiel #4
0
        public override LC_ENT.CoffeeEntite TraduireDataContractEnEntite(WCFC_Recherche.RechercheIntrant dc)
        {
            LC_ENT.CoffeeEntite retour = new LC_ENT.CoffeeEntite();
            retour.Id = dc.Id;

            //if (dc.DateReceptionObligation.HasValue)
            //{
            //    retour.DateReceptionObliga = dc.DateReceptionObligation;
            //}
            retour.Name  = dc.Name;
            retour.Type  = dc.Type;
            retour.Price = dc.Price;
            //retour.Roast = dc.Roast;
            //retour.Country = dc.Country;
            //retour.Image = dc.Image;


            return(retour);
        }
Beispiel #5
0
 public override WCFC_Recherche.RechercheIntrant TraduireEntiteEnDataContract(LC_ENT.CoffeeEntite reponse)
 {
     //Retourne nothing pour des fins de test
     return(null);
 }